Answer a question

I want to set Django timezone so that clock should remain consistent with local time in Florida, which is Eastern+Daylight Savings Time (DST). Please suggest the changes to the Django settings timezone such that it is consistent with this time zone; currently the django is set for EST (Eastern Standard Time) rather than EDT (Eastern Daylight Time). It should automatically change when we enter/leave DST.

# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.
# If running in a Windows environment this must be set to the same as your
# system time zone.
TIME_ZONE = 'America/Chicago'

I am running my application in amazon ubuntu. What is the best time_zone to use for Florida local time. I am using Django 1.5.

Answers

Correct timezone name (from tz database) for Florida is "America/New_York", simply put that into your TIME_ZONE setting instead of "America/Chicago"

Logo

Python社区为您提供最前沿的新闻资讯和知识内容

更多推荐