Opened 19 years ago

Closed 18 years ago

Last modified 17 years ago

#109 closed defect (fixed)

Patch: Customizing Date(Time)Field displays

Reported by: Manuzhai Owned by: anonymous
Component: contrib.admin Version:
Severity: blocker Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

In the admin interface, dates are displayed as July 11, 2005, 8:39 p.m., while I'd at the least prefer to have a 24-hour format for the time. I think there should be options DATE_FORMAT, TIME_FORMAT and DATETIME_FORMAT which take care of the default formatting for these fields.

Attachments (2)

custom-datetime-1.diff (1.1 KB ) - added by Manuzhai 19 years ago.
Handling a customizable datetime-formatting.
custom-datetime-2.diff (1.2 KB ) - added by Manuzhai 19 years ago.
Setting the default datetime-formatting

Download all attachments as: .zip

Change History (33)

by Manuzhai, 19 years ago

Attachment: custom-datetime-1.diff added

Handling a customizable datetime-formatting.

by Manuzhai, 19 years ago

Attachment: custom-datetime-2.diff added

Setting the default datetime-formatting

comment:1 by Manuzhai, 19 years ago

Ahh, sorry, that second patch also contains my other changes to the global_settings. Oh well, you get my drift, it's quite a trivial patch anyway.

comment:2 by Manuzhai, 19 years ago

Summary: Customizing Date(Time)Field displaysPatch: Customizing Date(Time)Field displays

Please comment on this?

comment:3 by Adrian Holovaty, 19 years ago

Resolution: fixed
Status: newclosed

(In [1115]) Fixed #109 -- Created DATE_FORMAT, DATETIME_FORMAT and TIME_FORMAT settings.

comment:4 by anonymous, 19 years ago

Resolution: fixed
Status: closedreopened

Please keep in mind that these need to be translateable - the problem is, they depend on the language the user chooses, not on some base setting. That's why I changed the code in i18n to have date:_("DATE_WITH_TIME_FULL") in there, so that the actual date format was pulled from the .po (and I added the english default format to the en-.po and the d.m.y format to all other languages).

comment:5 by Nebojša Đorđević - nesh <nesh@…>, 19 years ago

Any progress with this? When DATE_FORMAT, DATETIME_FORMAT and TIME_FORMAT will be translatable?

comment:6 by hugo, 19 years ago

Owner: changed from Adrian Holovaty to hugo
Status: reopenednew

You could try to use gettext_lazy('DATE_TIME_FULL') (or any other technical message IDs for which you need to put in translations into the translation file) on them. gettext_lazy constructs a translation promise that is realized (= translated) when the value is used as a string. This works quite often automatically.

I use the same technology for translating model names and field names. If that works, please update the ticket so I know that I can do the needed work. I am a bit out-of-the-loop due to my hotel not having net access, but will be able to check into this after the weekend.

comment:7 by hugo, 19 years ago

Status: newassigned

comment:8 by hugo, 19 years ago

Resolution: fixed
Status: assignedclosed

(In [1208]) fixes #109 - added translation possibilities for date and time formats (and updated translation files for the new message IDs)

comment:9 by Kaka17169, 18 years ago

Component: Admin interface
priority: normal
Resolution: fixed
Severity: normal
Status: closedreopened
Type: defect

comment:10 by Kaka99803, 18 years ago

Owner: changed from hugo to anonymous
Status: reopenednew

comment:11 by anonymous, 18 years ago

Component: Admin interface
priority: highest
Resolution: fixed
Severity: blocker
Status: newclosed
Type: defect

Trac spam

comment:12 by Kaka11861, 18 years ago

Component: Admin interface
priority: highest
Resolution: fixed
Severity: blocker
Status: closedreopened
Type: defect

comment:13 by Malcolm Tredinnick, 18 years ago

Component: Admin interface
priority: highest
Resolution: fixed
Severity: blocker
Status: reopenedclosed
Type: defect

spam.

comment:14 by Kaka81238, 18 years ago

Component: Admin interface
priority: highest
Resolution: fixed
Severity: blocker
Status: closedreopened
Type: defect

comment:15 by Kaka84298, 18 years ago

Status: reopenednew

comment:16 by Chris Beaven, 18 years ago

Component: Admin interface
priority: highest
Resolution: fixed
Severity: blocker
Status: newclosed
Type: defect

spam

comment:17 by anonymous, 18 years ago

Component: Admin interfaceContrib apps
milestone: Version 1.0
priority: highestnormal
Severity: blockerminor
Type: defecttask
Version: 0.9

comment:18 by Kaka73660, 18 years ago

Component: Contrib apps
milestone: Version 1.0
priority: normal
Resolution: fixed
Severity: minor
Status: closedreopened
Type: task
Version: 0.9

comment:19 by anonymous, 18 years ago

Component: Admin interface
priority: highest
Resolution: fixed
Severity: blocker
Status: reopenedclosed
Type: defect

comment:20 by anonymous, 18 years ago

priority: highestnormal
Severity: blockernormal

comment:21 by Kaka23606, 18 years ago

Component: Admin interface
priority: normal
Resolution: fixed
Severity: normal
Status: closedreopened
Type: defect

comment:22 by Adrian Holovaty, 18 years ago

Component: Admin interface
priority: highest
Resolution: fixed
Severity: blocker
Status: reopenedclosed
Type: defect

comment:23 by Kaka47380, 18 years ago

Component: Admin interface
priority: highest
Resolution: fixed
Severity: blocker
Status: closedreopened
Type: defect

comment:24 by Kaka38874, 18 years ago

Status: reopenednew

comment:25 by Adrian Holovaty, 18 years ago

Component: Admin interface
priority: highest
Resolution: fixed
Severity: blocker
Status: newclosed
Type: defect

comment:26 by Kaka86958, 18 years ago

Component: Admin interface
priority: highest
Resolution: fixed
Severity: blocker
Status: closedreopened
Type: defect

comment:27 by Kaka59626, 18 years ago

Status: reopenednew

comment:28 by anonymous, 18 years ago

Component: Admin interface
priority: highest
Severity: blocker
Type: defect

comment:29 by Tom Tobin <korpios@…>, 18 years ago

Resolution: fixed
Status: newclosed

Revert spam.

comment:30 by Kaka24474, 18 years ago

Cc: boss added
Component: Admin interfaceboss
Keywords: boss added
milestone: boss
priority: highestboss
Resolution: fixed
Severity: blockerboss
Status: closedreopened
Type: defectboss
Version: boss

comment:31 by anonymous, 18 years ago

Cc: boss removed
Component: bossAdmin interface
Keywords: boss removed
milestone: boss
priority: bosshighest
Resolution: fixed
Severity: bossblocker
Status: reopenedclosed
Type: bossdefect
Version: boss

persistant spam

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