--
Ticket URL: <https://code.djangoproject.com/ticket/18768>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Comment:
I'm the maintainer of time zone support in Django. As far as I can tell
there is some level of time zone awareness in Javascript
(`getTimezoneOffset`). In addition you may be using a library such as
`jskata.timezone.js`. This choice of tools is indpendent of Django.
In my opinion, this request is outside of the scope of Django. As a Python
web framework, it provides some tools to generate HTML, but it doesn't
delve into the JS and CSS land.
If this ticket was accepted, someone else will have to step up and provide
a patch, as I don't have the knowledge required to document, recommend or
endorse Javascript coding practices.
--
Ticket URL: <https://code.djangoproject.com/ticket/18768#comment:1>
Comment (by void):
Django does not delve into javascript very deep, but it does: at least it
provide some helpers like js catalogue of translated messages. Probably
questions are a bit outside of the scope, but maybe documentation can link
then to some good source of information about Javascript timezones and
django/js interaction in the field of datetimes/timezones?
--
Ticket URL: <https://code.djangoproject.com/ticket/18768#comment:2>
Comment (by aaugustin):
Can you provide a patch?
--
Ticket URL: <https://code.djangoproject.com/ticket/18768#comment:3>
Comment (by void):
Probably, but not very soon: I'm not the javascript guru and have to
understand the domain for myself first.
--
Ticket URL: <https://code.djangoproject.com/ticket/18768#comment:4>
* status: new => closed
* resolution: => needsinfo
Comment:
@void, if you would like to provide a patch at some point, please reopen,
thanks!
--
Ticket URL: <https://code.djangoproject.com/ticket/18768#comment:5>
Comment (by aaugustin):
I've been investigating support for time-zones JavaScript in the context
of #20663 and the key points are:
- JavaScript doesn't have any support for time zones whatsoever, and even
its Date API is... err... well, JavaScript would be better if it didn't
exist at all (0-indexed months, WTF?)
- third party libraries are definitely the way to go.
--
Ticket URL: <https://code.djangoproject.com/ticket/18768#comment:6>
Comment (by Aymeric Augustin <aymeric.augustin@…>):
In [changeset:"7e6d852bac4de2d5ed2d5ddeabf71482d644ef51"]:
{{{
#!CommitTicketReference repository=""
revision="7e6d852bac4de2d5ed2d5ddeabf71482d644ef51"
Fixed #20663 -- "Today" and "now" admin shortcuts.
Changed the shortcuts next to date and time intput widgets
to account for the current timezone.
Refs #7717, #14253 and #18768.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/18768#comment:7>