remove timezone support from one app

14 views
Skip to first unread message

smcoll

unread,
Jan 11, 2014, 11:59:34 AM1/11/14
to django...@googlegroups.com
i have timezone support enabled for my project, but there is one application which i would like to behave as timezone-naive.  How can this be accomplished?

smcoll

unread,
Jan 11, 2014, 12:05:54 PM1/11/14
to django...@googlegroups.com
To clarify, i'm dealing with datetimes which pre-date the implementation of timezones (solar time).  So i'd like any admin user in any timezone to be able to enter a naive datetime which will remain the same naive datetime for any usage in the site.

smcoll

unread,
Jan 13, 2014, 1:57:57 PM1/13/14
to django...@googlegroups.com
What i wound up doing was to create a custom ModelField which deals with timezone-naive datetimes/timestamps: https://gist.github.com/smcoll/8405914

Then, i created schema/data migrations in South to convert existing values.
Reply all
Reply to author
Forward
0 new messages