Impact of USE_TZ = False or True

12 views
Skip to first unread message

Amit Goyal

unread,
Mar 19, 2020, 4:20:08 AM3/19/20
to OpenWISP
Hi 

There is variable USE_TZ = False in setting.py. What is impact of this if set to False or True. 
I tried both value but could not see any differnce in openwisp .

Oliver Kraitschy

unread,
Mar 19, 2020, 4:27:00 AM3/19/20
to open...@googlegroups.com
Hello Amit,

see the explanation in the django documentation:

https://docs.djangoproject.com/en/3.0/ref/settings/#std:setting-USE_TZ
https://docs.djangoproject.com/en/3.0/ref/settings/#std:setting-TIME_ZONE
https://docs.djangoproject.com/en/3.0/ref/settings/#time-zone

Greetings,
Oliver
> --
> You received this message because you are subscribed to the Google Groups "OpenWISP" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to openwisp+u...@googlegroups.com.
> To view this discussion on the web, visit https://groups.google.com/d/msgid/openwisp/18c4e5d9-a299-41ee-990e-29b73dae3e54%40googlegroups.com.

Amit Goyal

unread,
Mar 20, 2020, 2:30:57 AM3/20/20
to OpenWISP
Hello Oliver 

Thanks for sharing information !

It mean , we should keep USE_TZ = False in case database is Postgresql , Right 

Thanks 
Amit


On Thursday, March 19, 2020 at 1:57:00 PM UTC+5:30, Oliver Kraitschy wrote:
Hello Amit,

see the explanation in the django documentation:

https://docs.djangoproject.com/en/3.0/ref/settings/#std:setting-USE_TZ
https://docs.djangoproject.com/en/3.0/ref/settings/#std:setting-TIME_ZONE
https://docs.djangoproject.com/en/3.0/ref/settings/#time-zone

Greetings,
Oliver

On Thu, Mar 19, 2020 at 01:20:07AM -0700, Amit Goyal wrote:
> Hi
>
> There is variable USE_TZ = False in setting.py. What is impact of this if
> set to False or True.
> I tried both value but could not see any differnce in openwisp .
>
> --
> You received this message because you are subscribed to the Google Groups "OpenWISP" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to open...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages