Re: [Django] #33810: Admin "now" time very strange

2022-06-28 Thread Django
#33810: Admin "now" time very strange
---+--
 Reporter:  Michael|Owner:  nobody
 Type:  Bug|   Status:  closed
Component:  contrib.admin  |  Version:  4.0
 Severity:  Normal |   Resolution:  needsinfo
 Keywords: | Triage Stage:  Unreviewed
Has patch:  0  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+--

Comment (by Michael):

 Replying to [comment:2 Mariusz Felisiak]:
 > The admin's site operates in the server time and it works for me with
 `TIME_ZONE = 'Africa/Johannesburg'`. I don't think you've explained the
 issue in enough detail to confirm a bug in Django. Please reopen the
 ticket if you can debug your issue and provide details about why and where
 Django is at fault. If you're having trouble understanding how Django
 works, see TicketClosingReasons/UseSupportChannels for ways to get help.

 As explained and checked the server time is SAST, and Django settings is
 set to SAST, and so is my computer SAST, but Django Admin is showing a 7hr
 timezone error. I am not asking for help, there is nothing else one can
 change, the admin site is auto generated.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070181a9756877-7b1309f0-cc52-4d3b-87d2-5a2e795dcc44-00%40eu-central-1.amazonses.com.


Re: [Django] #33810: Admin "now" time very strange

2022-06-27 Thread Django
#33810: Admin "now" time very strange
---+--
 Reporter:  Michael|Owner:  nobody
 Type:  Bug|   Status:  closed
Component:  contrib.admin  |  Version:  4.0
 Severity:  Normal |   Resolution:  needsinfo
 Keywords: | Triage Stage:  Unreviewed
Has patch:  0  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+--
Changes (by Mariusz Felisiak):

 * status:  new => closed
 * type:  Uncategorized => Bug
 * resolution:   => needsinfo


Comment:

 The admin's site operates in the server time and it works for me with
 `TIME_ZONE = 'Africa/Johannesburg'`. I don't think you've explained the
 issue in enough detail to confirm a bug in Django. Please reopen the
 ticket if you can debug your issue and provide details about why and where
 Django is at fault. If you're having trouble understanding how Django
 works, see TicketClosingReasons/UseSupportChannels for ways to get help.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070181a863101a-51d7c1ef-bf2a-494d-a161-b63cb074fae2-00%40eu-central-1.amazonses.com.


Re: [Django] #33810: Admin "now" time very strange

2022-06-27 Thread Django
#33810: Admin "now" time very strange
---+--
 Reporter:  Michael|Owner:  nobody
 Type:  Uncategorized  |   Status:  new
Component:  contrib.admin  |  Version:  4.0
 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:  0
---+--
Description changed by Michael:

Old description:

> The current time where I am is 00:25
>
> In Javascript it prints:
> {{{
> > new Date()
> Tue Jun 28 2022 00:25:07 GMT+0200 (South Africa Standard Time)
> }}}
>
> On the linux server running Django (a different computer to my browser):
> {{{
> $ date
> Tue 28 Jun 2022 12:25:48 AM SAST
> }}}
>
> But in the Django admin if I click the now of a date/time widget it adds:
> {{
> 2022-06-27 17:26:23
> Note: You are 7 hours ahead of server time.
> }}}
> It says I am 7 hours ahead, but my computer is set to SAST as well.
>
> This is my timezone settings (using Django==4.0.1, with zoneinfo):
> {{{
> # SAST = South African Standard Time is GMT+2
> USE_TZ = True
> TIME_ZONE = 'Africa/Johannesburg'
> }}}
>
> I see there was work on this issue about a decade ago. Not sure where the
> wonky "now" time is coming from.

New description:

 The current time where I am is 00:25

 In Javascript it prints:
 {{{
 > new Date()
 Tue Jun 28 2022 00:25:07 GMT+0200 (South Africa Standard Time)
 }}}

 On the linux server running Django (a different computer to my browser):
 {{{
 $ date
 Tue 28 Jun 2022 12:25:48 AM SAST
 }}}

 But in the Django admin if I click the now of a date/time widget it adds:
 {{{
 2022-06-27 17:26:23
 Note: You are 7 hours ahead of server time.
 }}}
 It says I am 7 hours ahead, but my computer is set to SAST as well.

 This is my timezone settings (using Django==4.0.1, with zoneinfo):
 {{{
 # SAST = South African Standard Time is GMT+2
 USE_TZ = True
 TIME_ZONE = 'Africa/Johannesburg'
 }}}

 I see there was work on this issue about a decade ago. Not sure where the
 wonky "now" time is coming from.

--

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070181a74c7d1f-90a1241c-2d67-487a-9d7e-9cf13cca10fe-00%40eu-central-1.amazonses.com.


[Django] #33810: Admin "now" time very strange

2022-06-27 Thread Django
#33810: Admin "now" time very strange
-+
   Reporter:  Michael|  Owner:  nobody
   Type:  Uncategorized  | Status:  new
  Component:  contrib.admin  |Version:  4.0
   Severity:  Normal |   Keywords:
   Triage Stage:  Unreviewed |  Has patch:  0
Needs documentation:  0  |Needs tests:  0
Patch needs improvement:  0  |  Easy pickings:  0
  UI/UX:  0  |
-+
 The current time where I am is 00:25

 In Javascript it prints:
 {{{
 > new Date()
 Tue Jun 28 2022 00:25:07 GMT+0200 (South Africa Standard Time)
 }}}

 On the linux server running Django (a different computer to my browser):
 {{{
 $ date
 Tue 28 Jun 2022 12:25:48 AM SAST
 }}}

 But in the Django admin if I click the now of a date/time widget it adds:
 {{
 2022-06-27 17:26:23
 Note: You are 7 hours ahead of server time.
 }}}
 It says I am 7 hours ahead, but my computer is set to SAST as well.

 This is my timezone settings (using Django==4.0.1, with zoneinfo):
 {{{
 # SAST = South African Standard Time is GMT+2
 USE_TZ = True
 TIME_ZONE = 'Africa/Johannesburg'
 }}}

 I see there was work on this issue about a decade ago. Not sure where the
 wonky "now" time is coming from.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070181a74bc334-24fba626-22ad-4cf4-af55-54c93dc1f186-00%40eu-central-1.amazonses.com.