After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 551861 - Date/Time formats
Date/Time formats
Status: RESOLVED DUPLICATE of bug 534019
Product: gnome-games-superseded
Classification: Deprecated
Component: gnome-sudoku
unspecified
Other Linux
: Normal major
: ---
Assigned To: GNOME Games maintainers
GNOME Games maintainers
Depends on:
Blocks:
 
 
Reported: 2008-09-11 19:50 UTC by 28872d13
Modified: 2009-05-08 03:25 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24



Description 28872d13 2008-09-11 19:50:13 UTC
Sudoku has some strange date/time formats:

#. then we're today
#. Translators, see strftime manual in order to translate %? format strings
#: ../gnome-sudoku/src/lib/timer.py:72
msgid "Today %R %p"

#. Translators, see strftime manual in order to translate %? format strings
#: ../gnome-sudoku/src/lib/timer.py:75
msgid "Yesterday %R %p"

#. Translators, see strftime manual in order to translate %? format strings
#: ../gnome-sudoku/src/lib/timer.py:81
msgid "%A %B %d %R %p"

According to strftime documentation, %R is the time in 24-hour-format and %p is AM/PM, so we end up with something like this:

Python 2.5.2 (r252:60911, Jul  8 2008, 21:21:10) 
[GCC 4.3.1 20080626 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import datetime
>>> a = datetime.datetime(2008, 9, 9, 23, 11)
>>> a.strftime("Today %R %P")
'Today 23:11 pm'
>>> 

How does this make any sense?


#. Translators, see strftime manual in order to translate %? format strings
#: ../gnome-sudoku/src/lib/timer.py:112
msgid "%B%e"

Shouldn't there be a comma in between? Looks like this:

>>> a = datetime.datetime(2008, 9, 9, 23, 11)
>>> a.strftime("%B%e")
'September 9'
>>> a = datetime.datetime(2008, 9, 20, 23, 11)
>>> a.strftime("%B%e")
'September20'
>>> 

Even if this the intended behaviour, please add comments that make this clear.
Comment 1 Jesse Zhang 2009-05-08 03:25:54 UTC
Thanks for taking the time to report this bug.
This particular bug has already been reported into our bug tracking system, but we are happy to tell you that the problem has already been fixed. It should be solved in the next software version. You may want to check for a software upgrade.


*** This bug has been marked as a duplicate of 534019 ***