Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5_fork
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eteri
erp5_fork
Commits
e6a94aab
Commit
e6a94aab
authored
Jun 06, 2012
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix format: year is given with 4 digits.
parent
6a0bf442
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
product/ZSQLCatalog/tests/testSQLCatalog.py
product/ZSQLCatalog/tests/testSQLCatalog.py
+3
-3
No files found.
product/ZSQLCatalog/tests/testSQLCatalog.py
View file @
e6a94aab
...
...
@@ -299,11 +299,11 @@ class TestSQLCatalog(ERP5TypeTestCase):
def
_testDateTimeKey
(
self
,
column
,
timezone
):
self
.
catalog
(
ReferenceQuery
(
ReferenceQuery
(
operator
=
'>='
,
date
=
DateTime
(
'2008/10/01 12:10:21'
)),
operator
=
'and'
),
{
column
:
{
'query'
:
'>2008/10/01 12:10:20'
,
'format'
:
'%
y
/%m/%d'
}})
{
column
:
{
'query'
:
'>2008/10/01 12:10:20'
,
'format'
:
'%
Y
/%m/%d'
}})
self
.
catalog
(
ReferenceQuery
(
ReferenceQuery
(
operator
=
'>='
,
date
=
DateTime
(
'2008/10/01 12:10:21 CEST'
)),
operator
=
'and'
),
{
column
:
{
'query'
:
'>2008/10/01 12:10:20 CEST'
,
'format'
:
'%
y
/%m/%d'
}})
{
column
:
{
'query'
:
'>2008/10/01 12:10:20 CEST'
,
'format'
:
'%
Y
/%m/%d'
}})
self
.
catalog
(
ReferenceQuery
(
ReferenceQuery
(
operator
=
'>='
,
date
=
DateTime
(
'2008/10/01 12:10:21 CET'
)),
operator
=
'and'
),
{
column
:
{
'query'
:
'>2008/10/01 12:10:20 CET'
,
'format'
:
'%
y
/%m/%d'
}})
{
column
:
{
'query'
:
'>2008/10/01 12:10:20 CET'
,
'format'
:
'%
Y
/%m/%d'
}})
self
.
catalog
(
ReferenceQuery
(
ReferenceQuery
(
ReferenceQuery
(
operator
=
'>='
,
date
=
DateTime
(
'2008/10/01 %s'
%
timezone
)),
ReferenceQuery
(
operator
=
'<'
,
date
=
DateTime
(
'2008/10/02 %s'
%
timezone
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment