Opened 13 years ago

Closed 12 years ago

#1771 closed enhancement (duplicate)

timepicker with 24h format

Reported by: jan831@… Owned by: Eugene Lazutkin
Priority: high Milestone: 0.9
Component: Internationalization Version: 0.4
Keywords: Cc:
Blocked By: Blocking:

Description

when using locales with 24h time formats, it would be nice to be able to pick hours as displayed (0->24) instead of the current 0->12 & AM/PM. Displaying hours like 23:59, it is not that intuitive to pick that hour as 11:59 PM.

maybe add an extra template, timepicker24.html with all the hours and without AM/PM options. or add the hours dynamic to the widget, depending on some kind of option or on the used timeformat (check the existance of 'a' in the format string)

Change History (6)

comment:1 Changed 13 years ago by Adam Peller

yeah, we discussed this. It's actually worse than that... some locales use 0h and some use 24h :-) (same for noon in 12 hour clocks, I think?) It's possible we could grep for the hour in the standard formatting pattern for that locale and make a guess at the appropriate template to use...

comment:2 Changed 13 years ago by bill

Milestone: 0.5
Owner: changed from bill to Adam Peller
Version: 0.50.4

Not sure who should get this bug (Adam, TK, Torrey?) but assigning to Adam for now. (Also not sure whether to schedule it for 0.5 or 0.6 but setting to 0.5 for now)

comment:3 Changed 13 years ago by Adam Peller

Owner: changed from Adam Peller to Eugene Lazutkin

Eugene, assigning this to you since I remember you planning to rework the widget. I can help you get information to determine the local customs for hours, though it might require a new API.

comment:4 Changed 13 years ago by Adam Peller

Priority: lownormal

comment:5 Changed 13 years ago by Adam Peller

Component: WidgetsInternationalization

comment:6 Changed 12 years ago by Adam Peller

Resolution: duplicate
Status: newclosed

See #2477

Note: See TracTickets for help on using tickets.