Ticket #140 (new enhancement)

Opened 4 years ago

Last modified 4 years ago

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

Changed 4 years ago by VexedPanda

Strange. Is there any reason not to use a QDateTime object and use the default toString() call? (That would use the format specified in QDateTime::$DefaultFormat?)

Changed 4 years ago by MikeHostetler

  • milestone changed from 1.1 to 1.2
Note: See TracTickets for help on using tickets.