Anup (OpenERP) has proposed merging
lp:~openerp-commiter/openobject-client/ach-trunk-opw-718040 into
lp:openobject-client.
Requested reviews:
OpenERP sa GTK client R&D (openerp-dev-gtk)
Related bugs:
#718040 Wrong representation of dates.
https://bugs.launchpad.net/bugs/718040
For more details, see:
https://code.launchpad.net/~openerp-commiter/openobject-client/ach-trunk-opw-718040/+merge/50915
Hello,
The representation of date in GTK is not proper when using %c %b %B etc.
This has been fixed by this solution.
Thanks.
--
https://code.launchpad.net/~openerp-commiter/openobject-client/ach-trunk-opw-718040/+merge/50915
Your team OpenERP sa GTK client R&D is requested to review the proposed merge
of lp:~openerp-commiter/openobject-client/ach-trunk-opw-718040 into
lp:openobject-client.
=== modified file 'bin/tools/datetime_util.py'
--- bin/tools/datetime_util.py 2010-12-23 06:12:37 +0000
+++ bin/tools/datetime_util.py 2011-02-23 13:02:16 +0000
@@ -56,8 +56,21 @@
'%m': ('__', '[_0-1][_0-9]'),
'%d': ('__', '[_0-3][_0-9]'),
'%H': ('__', '[_0-2][_0-9]'),
- '%M': ('__', '[_0-6][_0-9]'),
- '%S': ('__', '[_0-6][_0-9]'),
+ '%M': ('__', '[_0-5][_0-9]'),
+ '%S': ('__', '[_0-5][_0-9]'),
+ '%b': ('___', '[_A-Z][_a-z][_a-z]'),
+ '%a': ('___', '[_A-Z][_a-z][_a-z]'),
+ '%B': ('_________', '[_A-Z][_a-z]*'),
+ '%A': ('_________', '[_A-Z][_a-z]*'),
+ '%c': ('___ __ ___ ____ __:__:__ __','[_A-Z][_a-z][_a-z] [_0-3][_0-9] [_A-Z][_a-z][_a-z] [_1-9][_0-9][_0-9][_0-9] [_0-1][_0-9]:[_0-5][_0-9]:[_0-5][_0-9] [_AP][_M]'),
+ '%I': ('__', '[_01][_0-9]'),
+ '%p': ('__','[_AP][_M]'),
+ '%U': ('__','[_0-5][_0-9]'),
+ '%W': ('__','[_0-5][_0-9]'),
+ '%j': ('___','[_0-3][_0-6][_0-9]'),
+ '%w': ('_','[0-6]'),
+ '%x': ('__/__/____','[_0-3][_0-9]/[_0-1][_0-9]/[_1-9][_0-9][_0-9][_0-9]'),
+ '%X': ('__:__:__ __','[_01][_0-9]:[_0-5][_0-9]:[_0-5][_0-9] [_AP][_M]')
}
# RATIONALE BEHIND TIMESTAMP CALCULATIONS AND TIMEZONE MANAGEMENT:
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp