Opened 10 years ago
Closed 10 years ago
#11721 closed defect (worksforme)
Milestone: cannot input completion time greater than 11:59:59 am
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | i18n | Version: | 1.0.1 |
Severity: | minor | Keywords: | datepicker jqueryui needinfo |
Cc: | xypron.glpk@… | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
When completing a milestone the completion time and date can be entered in a pop up via a sliders.
My operating system (Windows 7) displays time in 24 hour format (00:00 - 23:59) without am/pm-notation.
The slider for the hour produces values: 12, 00, …, 12, 00, .., 11
I am not able to input a time after 11:59:59.
==System Information== Package Version Trac 1.0.1 Babel 1.3 Docutils 0.12 Genshi 0.7 (with speedups) GIT 2.1.0.rc1 mod_python 3.3.1 Pygments 1.6 pysqlite 2.6.0 Python 2.7.8 (default, Aug 10 2014, 19:19:46) [GCC 4.9.1] pytz 2012c setuptools 5.4.1 SQLite 3.8.5 jQuery 1.7.2 ==Installed Plugins== Name Version Location TracAccountManager 0.4.4 /home/trac/crevice/plugins/TracAccountManager-0.4.4-py2.7.egg TracGit 0.12.0.5dev /usr/lib/python2.7/dist-packages
Attachments (2)
Change History (11)
comment:1 by , 10 years ago
Keywords: | datepicker jqueryui added; datetime removed |
---|
follow-up: 5 comment:2 by , 10 years ago
My operating system (Windows 7) displays time in 24 hour format (00:00 - 23:59) without am/pm-notation.
No. The date/time format depends on your language setting in user preferences because Babel is installed.
If your selected/negotiated language is one of the following 5 languages, date/time with am/pm marker would be shown.
>>> from babel.dates import get_time_format >>> from trac.util.translation import get_available_locales >>> for l in sorted(get_available_locales()): ... fmt = get_time_format(locale=l) ... if 'a' in fmt.format: ... print l, fmt ... el <DateTimePattern u'h:mm:ss a'> en_US <DateTimePattern u'h:mm:ss a'> ko <DateTimePattern u'a h:mm:ss'> zh_CN <DateTimePattern u'ahh:mm:ss'> zh_TW <DateTimePattern u'ahh:mm:ss'>
comment:3 by , 10 years ago
Unrelated: I see that you have the TracGit plugin installed, but hopefully you don't have that plugin enabled since Trac provides Git support since 1.0. See TracGit page for more info.
comment:4 by , 10 years ago
Keywords: | needinfo added |
---|
follow-up: 6 comment:5 by , 10 years ago
Replying to jomae:
If your selected/negotiated language is one of the following 5 languages, date/time with am/pm
en_US <DateTimePattern u'h:mm:ss a'>
My browser preferred language is en_US. My trac profile language is en_US. There are three possible values for the date format. If I choose "Default date format" or "ISO 8601 format" am/pm is not shown. Only if I choose "Your language setting" or "Default date format" am/pm is displayed.
But I do not want am/pm. So I chose ISO 8601.
What I actually would like to see is DD.MM.YYYY hh:mm:ss with times up to 23:59:59. Unfortunately I only can get this date format with language German and not with English.
I think date format and language choices should be completely independent. But that would be content for a separate ticket.
by , 10 years ago
Attachment: | datetime-picker-iso8601.png added |
---|
by , 10 years ago
Attachment: | datetime-picker-locale.png added |
---|
follow-up: 7 comment:6 by , 10 years ago
Component: | roadmap → i18n |
---|
Replying to xypron.glpk@…:
My browser preferred language is en_US. My trac profile language is en_US. There are three possible values for the date format. If I choose "Default date format" or "ISO 8601 format" am/pm is not shown. Only if I choose "Your language setting" or "Default date format" am/pm is displayed.
But I do not want am/pm. So I chose ISO 8601.
Hmm, works for me in in demo-1.0 environment. See datetime-picker-locale.png and datetime-picker-iso8601.png.
What I actually would like to see is DD.MM.YYYY hh:mm:ss with times up to 23:59:59. Unfortunately I only can get this date format with language German and not with English.
I think date format and language choices should be completely independent. But that would be content for a separate ticket.
Yeah. Please create a new ticket as an enchancement for that if you want.
follow-up: 8 comment:7 by , 10 years ago
Hmm, works for me in in demo-1.0 environment. See datetime-picker-locale.png and datetime-picker-iso8601.png.
datetime-picker-iso8601.png does not show the ISO8601 date format.
comment:8 by , 10 years ago
Replying to xypron.glpk@…:
Hmm, works for me in in demo-1.0 environment. See datetime-picker-locale.png and datetime-picker-iso8601.png.
datetime-picker-iso8601.png does not show the ISO8601 date format.
Sorry for the simple mistake.
- datetime-picker-locale.png is
en_US
language withiso 8601 format
for date format - datetime-picker-iso8601.png is
en_US
language withYour language setting
for date format
I believe its a duplicate of #11413, but I'll let Jun confirm.