ray_otto
ray_otto

Reputation: 118

Django `TimeField` and timezone

Django documents says "Timezone withoud date no make sence" but I think it does. For example: DB store time of day start. User from Chicago saved start time as 05:00 am. System need to generate report for every day and use this start time with date (datetime field). So for summer days it will 10:00 by UTC, but for winter it will 11:00 by UTC.

The question is: how to generate datetime from frimefield and current date? Store timezone in special separate field?

https://docs.djangoproject.com/en/3.2/topics/i18n/timezones/#concepts enter image description here

Upvotes: 1

Views: 178

Answers (0)

Related Questions