--
Ticket URL: <https://code.djangoproject.com/ticket/25562>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* cc: bgianfo, aaugustin (added)
Comment:
The issue here seems to related to ticket #2315 and
[https://github.com/django/django/blob/f59a0401e5d0e19568a038f2a50954d1a9a1526f/django/conf/__init__.py#L119-L129
the lack of time.tzset() on Windows]. This causes
[https://github.com/django/django/blob/f59a0401e5d0e19568a038f2a50954d1a9a1526f/tests/admin_filters/tests.py#L231
datetime.date.today] to return a different value on Windows (ignoring the
time zone) than on Unix because the time zone that Django sets is never
activated on Windows.
Absent another solution, we can skip the test on Windows, but I'm not sure
what this means for timezone support on Windows in general. A note in
[https://docs.djangoproject.com/en/stable/topics/i18n/timezones/ the
timezone docs] might be useful.
--
Ticket URL: <https://code.djangoproject.com/ticket/25562#comment:1>
Comment (by aaugustin):
IIRC time zone supports on Windows requires TIME_ZONE to match the system
time zone.
See https://docs.djangoproject.com/en/1.8/ref/settings/#std:setting-
TIME_ZONE
As a consequence you can't run a test that requires changing the TIME_ZONE
setting (unless you also change the system time zone but that sounds
overkill).
--
Ticket URL: <https://code.djangoproject.com/ticket/25562#comment:2>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/25562#comment:3>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"4a50daf6b343db1b5c316aa29efd657e160d0cd3" 4a50daf]:
{{{
#!CommitTicketReference repository=""
revision="4a50daf6b343db1b5c316aa29efd657e160d0cd3"
Fixed #25562 -- Skipped a time dependent admin_filters test on Windows.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25562#comment:4>
Comment (by Tim Graham <timograham@…>):
In [changeset:"cf1038d8e39df914bace26d78f321556036a51c6" cf1038d8]:
{{{
#!CommitTicketReference repository=""
revision="cf1038d8e39df914bace26d78f321556036a51c6"
[1.8.x] Fixed #25562 -- Skipped a time dependent admin_filters test on
Windows.
Backport of 4a50daf6b343db1b5c316aa29efd657e160d0cd3 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25562#comment:5>
Comment (by Tim Graham <timograham@…>):
In [changeset:"994e7661a8b682ecd2bce4869d5a6cc61ee8c2c9" 994e766]:
{{{
#!CommitTicketReference repository=""
revision="994e7661a8b682ecd2bce4869d5a6cc61ee8c2c9"
[1.9.x] Fixed #25562 -- Skipped a time dependent admin_filters test on
Windows.
Backport of 4a50daf6b343db1b5c316aa29efd657e160d0cd3 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25562#comment:6>