0

What is the difference between timezone and datetime?
timezone.now() returns 2016-09-26 16:20:27.211358+00:00
datetime.now() returns 2016-09-26 21:50:27.211261

Right now time in laptop clock is 21:50:27 ( 9 PM IST)

In my django settings file I have following settings.

USE_TZ = True
TIME_ZONE = 'Asia/Calcutta'

Which one should I use to store time-stamp values in my database?
What if tomorrow someone in USA is using the code I am writing?
What should be the correct timezone settings in django settings file?

Anurag Rana
  • 1,429
  • 2
  • 24
  • 48

0 Answers0