Ticket #140 (new enhancement)
Allow formatting of time in datetime picker
| Reported by: | kmeirlaen | Owned by: | somebody |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.2 |
| Component: | QForms | Version: | |
| Keywords: | Cc: |
Description
In datetimepicker time is always rendered in US format (AM/PM):
$strHourListBox .= sprintf('<option value="%s"%s>%s</option>',
$intHour,
$strSelected,
date('g A', mktime($intHour, 0, 0, 1, 1, 2000)));
In Belgium, it is general practice to use the 24 hour format.
We should allow overriding the default rendering format of the hour by passing a value to the date function instead of the hardcode 'g A' (eg, I want to use 'H').
Change History
Note: See
TracTickets for help on using
tickets.
