#24980: Calendar selector for DateField defaults to wrong date when timezone is missmatching ------------------------+-------------------------------------- Reporter: edruid | Owner: nobody Type: Bug | Status: new Component: Forms | Version: 1.8 Severity: Normal | Resolution: Keywords: | Triage Stage: Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 1 ------------------------+--------------------------------------
Comment (by edruid): There is a warning for the mismatching timezone. I'll attach an image displaying the problem. In this case the Member object has the sql row: {{{ id | first_name | last_name | date_of_birth | email | gender ----+------------+-----------+---------------+----------------------+-------- 1 | Eric | Druid | 1983-11-20 | eric.dr...@gmail.com | m }}} The problem is the preselected 1983-11-19 rather than 1983-11-20. It looks to me as if the javascript is converting the date (1983-11-20) in CEST as a timestamp (1983-11-20 00:00+2), then changing it to UTC (1983-11-19 22:00+0) and extracting the date (1983-11-19) and using that to mark the selected day. -- Ticket URL: <https://code.djangoproject.com/ticket/24980#comment:2> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/064.23c02f3956bfc4a67fd128e7976d1f5b%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.