Django

Code

Ticket #4487 (closed: fixed)

Opened 1 year ago

Last modified 1 year ago

SplitDateTimeWidget should not show microsecond.

Reported by: yi.codeplayer at gmail dot com Assigned to: mtredinnick
Milestone: Component: Forms
Version: SVN Keywords: SplitDateTimeWidget time format
Cc: Triage Stage: Ready for checkin
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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

timewidget.patch (0.5 kB) - added by yi.codeplayer at gmail dot com on 06/06/07 02:05:09.
The Patch.

Change History

06/06/07 02:05:09 changed by yi.codeplayer at gmail dot com

  • attachment timewidget.patch added.

The Patch.

06/06/07 02:06:16 changed by anonymous

  • needs_better_patch changed.
  • has_patch set to 1.
  • needs_tests changed.
  • needs_docs changed.

07/22/07 01:09:59 changed by Simon G. <dev@simon.net.nz>

  • stage changed from Unreviewed to Ready for checkin.

09/16/07 07:44:41 changed by PhiR

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

09/16/07 07:45:31 changed by mtredinnick

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

09/16/07 07:45:39 changed by mtredinnick

  • owner changed from nobody to mtredinnick.

10/21/07 09:50:47 changed by mtredinnick

  • status changed from new to closed.
  • resolution set to fixed.

(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@gmail.com, andrews and Wiliam Alves de Souza. Fixed #4428, #4487


Add/Change #4487 (SplitDateTimeWidget should not show microsecond.)




Change Properties
Action