Object history should reuse existing date formats, instead of implementing itself
|Reported by:||garcia_marc||Owned by:||nobody|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Django has some date formats in trans_real.py that can be defined in translations, and used anywhere. Different formats exists such as DATE_FORMAT, DATETIME_FORMAT, TIME_FORMAT...
Object history template is using another format, that actually is (or should be) the same as DATETIME_FORMAT, called DATE_WITH_TIME_FULL.
I think that if the format is the same, it should be defined once, or if it isn't the same, it should be added to trans_real.py to allow usage in user's code.
Change History (6)
Changed 6 years ago by garcia_marc
comment:1 Changed 6 years ago by programmerq
- milestone set to 1.0
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Design decision needed
comment:3 Changed 6 years ago by jacob
- Triage Stage changed from Design decision needed to Ready for checkin