wrong time in query

10 views
Skip to first unread message

Soumen Khatua

unread,
Aug 30, 2020, 2:05:02 PM8/30/20
to django...@googlegroups.com
Hi Folks,
In my model one column is their called start which is datetime field and start is storing datetime by using django specific datetime field like:  Aug. 30, 2020, 7:44 p.m. 
But after ran one get query when I tried to access the date and time,I'm getting wrong time like: 2020-08-30 14:14:00+00:00

Can anyone tell me why I'm getting wrong time,although I selected TIME_ZONE = 'Asia/Kolkata'

Thank you

regards,
Soumen

Kunal Solanke

unread,
Aug 30, 2020, 2:08:49 PM8/30/20
to django...@googlegroups.com
Are you using timezone for saving time 
which is exported from django.utils or the python datetime module?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPUw6Wa3%3DzBdAud32AiC78ng9SVgTJcneXwtB0hLVD9YwFJ2AQ%40mail.gmail.com.

Soumen Khatua

unread,
Aug 30, 2020, 2:12:35 PM8/30/20
to django...@googlegroups.com
no,directly I'm using TIME_ZONE = 'Asia/Kolkata',

Reply all
Reply to author
Forward
0 new messages