Edgewall Software
Modify

Opened 10 years ago

Closed 9 years ago

#11721 closed defect (worksforme)

Milestone: cannot input completion time greater than 11:59:59 am

Reported by: xypron.glpk@… 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)

datetime-picker-iso8601.png (17.8 KB ) - added by Jun Omae 10 years ago.
datetime-picker-locale.png (18.3 KB ) - added by Jun Omae 10 years ago.

Download all attachments as: .zip

Change History (11)

comment:1 by Ryan J Ollos, 10 years ago

Keywords: datepicker jqueryui added; datetime removed

I believe its a duplicate of #11413, but I'll let Jun confirm.

in reply to:  description ; comment:2 by Jun Omae, 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'>
Last edited 10 years ago by Jun Omae (previous) (diff)

comment:3 by Ryan J Ollos, 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 Ryan J Ollos, 10 years ago

Keywords: needinfo added

in reply to:  2 ; comment:5 by xypron.glpk@…, 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.

Last edited 10 years ago by Jun Omae (previous) (diff)

by Jun Omae, 10 years ago

Attachment: datetime-picker-iso8601.png added

by Jun Omae, 10 years ago

Attachment: datetime-picker-locale.png added

in reply to:  5 ; comment:6 by Jun Omae, 10 years ago

Component: roadmapi18n

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.

in reply to:  6 ; comment:7 by xypron.glpk@…, 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.

in reply to:  7 comment:8 by Jun Omae, 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.

Last edited 10 years ago by Jun Omae (previous) (diff)

comment:9 by Christian Boos, 9 years ago

Resolution: worksforme
Status: newclosed

No feedback, closing.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.