For the basic types, this isn't a problem, but for `DateTimeRangeField` it
is, because the `DateTimeField` (`DateTimeRangeField`'s `base_field`) does
a timezone conversion on the submitted values, but `DateTimeRangeField`
leaves the timezone as is.
What then happens is that datetimes displayed by the field are in UTC, but
they are submitted as the local timezone.
--
Ticket URL: <https://code.djangoproject.com/ticket/24841>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* owner: => unklphil
* needs_docs: => 0
* status: new => assigned
* needs_tests: => 0
* needs_better_patch: => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/24841#comment:1>
Comment (by unklphil):
Pull request: https://github.com/django/django/pull/4695
--
Ticket URL: <https://code.djangoproject.com/ticket/24841#comment:2>
* needs_better_patch: 0 => 1
* severity: Normal => Release blocker
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/24841#comment:3>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"614bec41b5306b32b8de20d66f047ff8d6f35256" 614bec41]:
{{{
#!CommitTicketReference repository=""
revision="614bec41b5306b32b8de20d66f047ff8d6f35256"
Fixed #24841 -- Made BaseRangeField.prepare_value() call base_field's
prepare_value()
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24841#comment:4>
Comment (by Tim Graham <timograham@…>):
In [changeset:"4311fd2c0a5611c3103ffbae41973fd1552657a2" 4311fd2c]:
{{{
#!CommitTicketReference repository=""
revision="4311fd2c0a5611c3103ffbae41973fd1552657a2"
[1.8.x] Fixed #24841 -- Made BaseRangeField.prepare_value() call
base_field's prepare_value()
Backport of 614bec41b5306b32b8de20d66f047ff8d6f35256 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24841#comment:5>