GNOME Bugzilla – Bug 343686
itip-view.c:format_date_and_time_x() should use e_utf8_strftime_fix_am_pm()
Last modified: 2013-09-10 14:04:39 UTC
itip-view.c:format_date_and_time_x() should use e_utf8_strftime_fix_am_pm() and not e_utf8_strftime(). Otherwise times in messages in the Calendar folded will show up in 12h format even in 24h locales, which is confusing as hell, as you don't get any AM/PM indicator anyway. At least that's what happened for me, and simply changing it to call e_utf8_strftime_fix_am_pm() instead worked fine. (Once I figured out that the date and time in question is produced in a plugin, of all places...)
Created attachment 71831 [details] screenshot see the wrong time displayed (i added the correct time as the description of the appointment)
Created attachment 71832 [details] [review] patch. thanks to tor! :-) fixes the issue, i tested this.
Please commit the patch to cvs HEAD and gnome-2-14 branches. andre, also if poss., please verify if this problem exists in the calendar views as well. As i see e_utf8_strftime is used in many parts of the code. There are some checks made to ensure the usage of the 24 hour format for the locales which do not provide AM/PM information using calendar_config_get_24_hour_format (this internally checks the condition and returns appropriate value). Tor, thats really a good catch !!! thanks tor and andre.
patch committed to cvs head and gnome-2-14 branch. chen, i haven't seen any other cases here in my german environment yet, i'm inclined to close this.
*** Bug 314124 has been marked as a duplicate of this bug. ***