dateformat tests fail on first of the month if in GMT+ timezone
|Reported by:||russellm||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
The dateformat tests set the system timezone to Europe/Copenhagen, but doesn't revert this setting.
As a result, the generic date_archive view test fails during the morning of the first of the month because datetime.now() returns the date in Copenhagen, not the date in settings.TIMEZONE.
Change History (4)
comment:3 Changed 7 years ago by russellm
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Resolution fixed deleted
- Status changed from closed to reopened