Opened 21 years ago

Closed 20 years ago

Last modified 19 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 21 years ago.
Handling a customizable datetime-formatting.
custom-datetime-2.diff​ (1.2 KB ) - added by Manuzhai 21 years ago.
Setting the default datetime-formatting

Download all attachments as: .zip

Change History (33)

by Manuzhai, 21 years ago

Attachment: custom-datetime-1.diff​ added

Handling a customizable datetime-formatting.

by Manuzhai, 21 years ago

Attachment: custom-datetime-2.diff​ added

Setting the default datetime-formatting

comment:1 by Manuzhai, 21 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, 21 years ago

Summary: Customizing Date(Time)Field displays → Patch: Customizing Date(Time)Field displays

Please comment on this?

comment:3 by Adrian Holovaty, 21 years ago

Resolution: → fixed
Status: new → closed

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

comment:4 by anonymous, 21 years ago

Resolution: fixed
Status: closed → reopened

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@…>, 21 years ago

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

comment:6 by hugo, 21 years ago

Owner: changed from Adrian Holovaty to hugo
Status: reopened → new

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, 21 years ago

Status: new → assigned

comment:8 by hugo, 21 years ago

Resolution: → fixed
Status: assigned → closed

(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, 20 years ago

Component: Admin interface
priority: normal
Resolution: fixed
Severity: normal
Status: closed → reopened
Type: defect

comment:10 by Kaka99803, 20 years ago

Owner: changed from hugo to anonymous
Status: reopened → new

comment:11 by anonymous, 20 years ago

Component: → Admin interface
priority: → highest
Resolution: → fixed
Severity: → blocker
Status: new → closed
Type: → defect

Trac spam

comment:12 by Kaka11861, 20 years ago

Component: Admin interface
priority: highest
Resolution: fixed
Severity: blocker
Status: closed → reopened
Type: defect

comment:13 by Malcolm Tredinnick, 20 years ago

Component: → Admin interface
priority: → highest
Resolution: → fixed
Severity: → blocker
Status: reopened → closed
Type: → defect

spam.

comment:14 by Kaka81238, 20 years ago

Component: Admin interface
priority: highest
Resolution: fixed
Severity: blocker
Status: closed → reopened
Type: defect

comment:15 by Kaka84298, 20 years ago

Status: reopened → new

comment:16 by Chris Beaven, 20 years ago

Component: → Admin interface
priority: → highest
Resolution: → fixed
Severity: → blocker
Status: new → closed
Type: → defect

spam

comment:17 by anonymous, 20 years ago

Component: Admin interface → Contrib apps
milestone: → Version 1.0
priority: highest → normal
Severity: blocker → minor
Type: defect → task
Version: → 0.9

comment:18 by Kaka73660, 20 years ago

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

comment:19 by anonymous, 20 years ago

Component: → Admin interface
priority: → highest
Resolution: → fixed
Severity: → blocker
Status: reopened → closed
Type: → defect

comment:20 by anonymous, 20 years ago

priority: highest → normal
Severity: blocker → normal

comment:21 by Kaka23606, 20 years ago

Component: Admin interface
priority: normal
Resolution: fixed
Severity: normal
Status: closed → reopened
Type: defect

comment:22 by Adrian Holovaty, 20 years ago

Component: → Admin interface
priority: → highest
Resolution: → fixed
Severity: → blocker
Status: reopened → closed
Type: → defect

comment:23 by Kaka47380, 20 years ago

Component: Admin interface
priority: highest
Resolution: fixed
Severity: blocker
Status: closed → reopened
Type: defect

comment:24 by Kaka38874, 20 years ago

Status: reopened → new

comment:25 by Adrian Holovaty, 20 years ago

Component: → Admin interface
priority: → highest
Resolution: → fixed
Severity: → blocker
Status: new → closed
Type: → defect

comment:26 by Kaka86958, 20 years ago

Component: Admin interface
priority: highest
Resolution: fixed
Severity: blocker
Status: closed → reopened
Type: defect

comment:27 by Kaka59626, 20 years ago

Status: reopened → new

comment:28 by anonymous, 20 years ago

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

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

Resolution: → fixed
Status: new → closed

Revert spam.

comment:30 by Kaka24474, 20 years ago

Cc: boss added
Component: Admin interface → boss
Keywords: boss added
milestone: → boss
priority: highest → boss
Resolution: fixed
Severity: blocker → boss
Status: closed → reopened
Type: defect → boss
Version: → boss

comment:31 by anonymous, 20 years ago

Cc: boss removed
Component: boss → Admin interface
Keywords: boss removed
milestone: boss
priority: boss → highest
Resolution: → fixed
Severity: boss → blocker
Status: reopened → closed
Type: boss → defect
Version: boss

persistant spam

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