Opened 18 years ago

Closed 17 years ago

#4487 closed (fixed)

SplitDateTimeWidget should not show microsecond.

Reported by: yi.codeplayer at gmail dot com Owned by: Malcolm Tredinnick
Component: Forms Version: dev
Severity: Keywords: SplitDateTimeWidget time format
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

SplitDateTimeWidget would show microsecond,(e.g. "14:53:04.296000"). And this isn't a valid format to TimeField which only support these two formats:

'%H:%M:%S',     # '14:30:59'
'%H:%M',        # '14:30'

Attachments (1)

timewidget.patch (521 bytes ) - added by yi.codeplayer at gmail dot com 18 years ago.
The Patch.

Download all attachments as: .zip

Change History (7)

by yi.codeplayer at gmail dot com, 18 years ago

Attachment: timewidget.patch added

The Patch.

comment:1 by anonymous, 18 years ago

Has patch: set

comment:2 by Simon G. <dev@…>, 17 years ago

Triage Stage: UnreviewedReady for checkin

comment:3 by Philippe Raoult, 17 years ago

#4428 also has a patch for this issue, although this one looks much more elegant.

comment:4 by Malcolm Tredinnick, 17 years ago

With reference to the previous comment, we need both this ticket and #4428. I'm on it.

comment:5 by Malcolm Tredinnick, 17 years ago

Owner: changed from nobody to Malcolm Tredinnick

comment:6 by Malcolm Tredinnick, 17 years ago

Resolution: fixed
Status: newclosed

(In [6578]) Changed the default form presentation of datetime values to not include the
fractional second values (they usually aren't going to be needed). Based on
patches from yi.codeplayer@…, andrews and Wiliam Alves de Souza. Fixed #4428, #4487

Note: See TracTickets for help on using tickets.
Back to Top