Code

Opened 7 years ago

Closed 7 years ago

#3014 closed enhancement (fixed)

[PATCH] "Now" link in time fields at Django Admin updates seconds too

Reported by: esdrasbeleza Owned by: adrian
Component: contrib.admin Version: master
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

When I use the Now link at Django Admin when using datetime fields, it doesn't update the seconds. It's not a good thing for sites where ordering seconds matters, like news sections. I hacked some JavaScript files and now seconds are updated too.

Attachments (1)

time_with_seconds.diff (3.6 KB) - added by Esdras Beleza <linux@…> 7 years ago.
update time field's seconds too.

Download all attachments as: .zip

Change History (2)

Changed 7 years ago by Esdras Beleza <linux@…>

update time field's seconds too.

comment:1 Changed 7 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

(In [4087]) Fixed #3014 -- Admin 'now' shortcut for DateTimeFields now updates seconds, too. Thanks for the patch, Esdras Beleza

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.