Re: [Django] #24980: Calendar selector for DateField defaults to wrong date when timezone is missmatching

2016-01-08 Thread Django
#24980: Calendar selector for DateField defaults to wrong date when timezone is
missmatching
-+
 Reporter:  edruid   |Owner:  sasha0
 Type:  Bug  |   Status:  closed
Component:  contrib.admin|  Version:  1.8
 Severity:  Release blocker  |   Resolution:  fixed
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  1
-+
Changes (by timgraham):

 * status:  assigned => closed
 * resolution:   => fixed


--
Ticket URL: 
Django 
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.5f574ac4446e57602e5e8706149fd597%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #24980: Calendar selector for DateField defaults to wrong date when timezone is missmatching

2016-01-08 Thread Django
#24980: Calendar selector for DateField defaults to wrong date when timezone is
missmatching
-+
 Reporter:  edruid   |Owner:  sasha0
 Type:  Bug  |   Status:  assigned
Component:  contrib.admin|  Version:  1.8
 Severity:  Release blocker  |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  1
-+

Comment (by Tim Graham ):

 In [changeset:"caeacd94ddc7fa8e7e408ad252cfff4601d502c4" caeacd94]:
 {{{
 #!CommitTicketReference repository=""
 revision="caeacd94ddc7fa8e7e408ad252cfff4601d502c4"
 [1.8.x] Refs #24980 -- Fixed incorrect timezone handling in admin calendar
 widget.

 Backport of ea7542891a4e3638a695c58bd6f00658b7c85985 from master
 }}}

--
Ticket URL: 
Django 
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.0a28835e6ad71f6e3de87ba7a0eb4f50%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #24980: Calendar selector for DateField defaults to wrong date when timezone is missmatching

2016-01-08 Thread Django
#24980: Calendar selector for DateField defaults to wrong date when timezone is
missmatching
-+
 Reporter:  edruid   |Owner:  sasha0
 Type:  Bug  |   Status:  assigned
Component:  contrib.admin|  Version:  1.8
 Severity:  Release blocker  |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  1
-+

Comment (by Tim Graham ):

 In [changeset:"835fff47322bafcd57906601b8ba8675b2d762d5" 835fff4]:
 {{{
 #!CommitTicketReference repository=""
 revision="835fff47322bafcd57906601b8ba8675b2d762d5"
 [1.9.x] Refs #24980 -- Fixed incorrect timezone handling in admin calendar
 widget.

 Backport of ea7542891a4e3638a695c58bd6f00658b7c85985 from master
 }}}

--
Ticket URL: 
Django 
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.08fd899e59ed79f815c72d6d8f117a11%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #24980: Calendar selector for DateField defaults to wrong date when timezone is missmatching

2016-01-08 Thread Django
#24980: Calendar selector for DateField defaults to wrong date when timezone is
missmatching
-+
 Reporter:  edruid   |Owner:  sasha0
 Type:  Bug  |   Status:  assigned
Component:  contrib.admin|  Version:  1.8
 Severity:  Release blocker  |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  1
-+

Comment (by Tim Graham ):

 In [changeset:"ea7542891a4e3638a695c58bd6f00658b7c85985" ea754289]:
 {{{
 #!CommitTicketReference repository=""
 revision="ea7542891a4e3638a695c58bd6f00658b7c85985"
 Refs #24980 -- Fixed incorrect timezone handling in admin calendar widget.
 }}}

--
Ticket URL: 
Django 
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.1133956cd9ff4c76ab56b9601d19cc1c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #24980: Calendar selector for DateField defaults to wrong date when timezone is missmatching

2016-01-08 Thread Django
#24980: Calendar selector for DateField defaults to wrong date when timezone is
missmatching
-+
 Reporter:  edruid   |Owner:  sasha0
 Type:  Bug  |   Status:  assigned
Component:  contrib.admin|  Version:  1.8
 Severity:  Release blocker  |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  1
-+
Changes (by sasha0):

 * status:  new => assigned
 * owner:  nobody => sasha0
 * has_patch:  0 => 1


Comment:

 [https://github.com/django/django/pull/5953 PR]

--
Ticket URL: 
Django 
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.b8b4c4feb30a35e050f77433883bed2a%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #24980: Calendar selector for DateField defaults to wrong date when timezone is missmatching

2016-01-08 Thread Django
#24980: Calendar selector for DateField defaults to wrong date when timezone is
missmatching
-+
 Reporter:  edruid   |Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  contrib.admin|  Version:  1.8
 Severity:  Release blocker  |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  1
-+

Comment (by sasha0):

 Replying to [comment:10 timgraham]:
 > Looks like this broke some selenium tests:
 
`admin_widgets.tests.DateTimePickerSeleniumFirefoxTests.test_calendar_nonday_class`
 and  `test_calendar_selected_class`

 I'm looking into this.

--
Ticket URL: 
Django 
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.a6ad5e427a079a6b799a431382fb9dbf%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #24980: Calendar selector for DateField defaults to wrong date when timezone is missmatching

2016-01-08 Thread Django
#24980: Calendar selector for DateField defaults to wrong date when timezone is
missmatching
-+
 Reporter:  edruid   |Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  contrib.admin|  Version:  1.8
 Severity:  Release blocker  |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  1
-+
Changes (by timgraham):

 * status:  closed => new
 * has_patch:  1 => 0
 * resolution:  fixed =>


Comment:

 Looks like this broke some selenium tests:
 
`admin_widgets.tests.DateTimePickerSeleniumFirefoxTests.test_calendar_nonday_class`
 and  `test_calendar_selected_class`

--
Ticket URL: 
Django 
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.57a413676c8348c9d0828264455470fa%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #24980: Calendar selector for DateField defaults to wrong date when timezone is missmatching

2015-12-26 Thread Django
#24980: Calendar selector for DateField defaults to wrong date when timezone is
missmatching
---+
 Reporter:  edruid |Owner:  nobody
 Type:  Bug|   Status:  new
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  1
---+
Changes (by sasha0):

 * has_patch:  0 => 1


Comment:

 [https://github.com/django/django/pull/5881 PR]

--
Ticket URL: 
Django 
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.dc6e7402de8c54772cef7597f3cfcab1%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #24980: Calendar selector for DateField defaults to wrong date when timezone is missmatching

2015-12-26 Thread Django
#24980: Calendar selector for DateField defaults to wrong date when timezone is
missmatching
---+
 Reporter:  edruid |Owner:  nobody
 Type:  Bug|   Status:  new
Component:  contrib.admin  |  Version:  master
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Accepted
Has patch:  0  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  1
---+
Changes (by sasha0):

 * version:  1.8 => master


Comment:

 I have reproduced this in the master branch as well.

--
Ticket URL: 
Django 
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.7124ab997a87f6149f46b730bce3b07c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #24980: Calendar selector for DateField defaults to wrong date when timezone is missmatching

2015-06-13 Thread Django
#24980: Calendar selector for DateField defaults to wrong date when timezone is
missmatching
---+
 Reporter:  edruid |Owner:  nobody
 Type:  Bug|   Status:  new
Component:  contrib.admin  |  Version:  1.8
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Accepted
Has patch:  0  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  1
---+
Changes (by timgraham):

 * component:  Forms => contrib.admin
 * stage:  Unreviewed => Accepted


Comment:

 I can reproduce this.

--
Ticket URL: 
Django 
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.eefa7288aa6c670a2e41bd91a6d415b6%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #24980: Calendar selector for DateField defaults to wrong date when timezone is missmatching

2015-06-13 Thread Django
#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
+--
Changes (by edruid):

 * Attachment "django_admin_calendar_missmatch.png" added.

 Missmatching date for text/calendar

--
Ticket URL: 
Django 
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.a24ac5b28215c7e40f809843b2ac2328%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #24980: Calendar selector for DateField defaults to wrong date when timezone is missmatching

2015-06-13 Thread Django
#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: 
Django 
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.


Re: [Django] #24980: Calendar selector for DateField defaults to wrong date when timezone is missmatching

2015-06-13 Thread Django
#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
+--
Changes (by aaugustin):

 * needs_better_patch:   => 0
 * needs_tests:   => 0
 * needs_docs:   => 0


Comment:

 Your date field must default to `datetime.date.today()`. This value is
 computed in the time zone you chose: `TIME_ZONE = 'UTC'`. You're seeing
 the expected behavior.

 Django doesn't automatically set the time zone based on the browser's time
 zone for the reasons explained in the documentation:
 https://docs.djangoproject.com/en/1.8/topics/i18n/timezones/#selecting-
 the-current-time-zone

 For date time fields, the admin displays a warning when the browser's time
 zone doesn't match the server's time zone. Perhaps we should do this for
 date fields as well.

--
Ticket URL: 
Django 
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.2337692ebb53d52edb85026ffdd8ddaa%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


[Django] #24980: Calendar selector for DateField defaults to wrong date when timezone is missmatching

2015-06-13 Thread Django
#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  |   Keywords:
 Triage Stage:  Unreviewed  |  Has patch:  0
Easy pickings:  0   |  UI/UX:  1
+
 I have a server set to the time zone UTC and my browser set to CEST
 (UTC+2). The calendar helper will display the date before the selected one
 for date fields.

 Steps to reproduce:
 1. Set TIME_ZONE = 'UTC' in settings.py
 2. Set timezone of local machine (where the browser is run from) to CEST
 3. Create a DateField that is printed in a form on an object
 4. Create an object
 5. View the objects interface, open the calendar js helper and notice that
 the selected date is the day before what is printed in the input box.

 This is repeatable without saving the object, just select a different date
 and reopen the calendar and the date before the one clicked is used.

 This is tested using python 2.7.6, django 1.8 using Chromium 43.0.2357.81

--
Ticket URL: 
Django 
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/049.73c01056911b01e93b3d31456025ccc4%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.