Ticket #1771 (closed enhancement: duplicate)

Opened 2 years ago

Last modified 21 months ago

timepicker with 24h format

Reported by: jan831@… Owned by: elazutkin
Priority: normal Milestone: 0.9
Component: Internationalization Version: 0.4
Severity: normal Keywords:
Cc:

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

Changed 2 years ago by 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...

Changed 2 years ago by bill

  • owner changed from bill to peller
  • version changed from 0.5 to 0.4
  • milestone set to 0.5

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)

Changed 2 years ago by peller

  • owner changed from peller to elazutkin

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.

Changed 2 years ago by peller

  • priority changed from low to normal

Changed 2 years ago by peller

  • component changed from Widgets to Internationalization

Changed 21 months ago by peller

  • status changed from new to closed
  • resolution set to duplicate

See #2477

Note: See TracTickets for help on using tickets.