Monday, January 13, 2014

Re: remove timezone support from one app

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.

On Saturday, January 11, 2014 11:05:54 AM UTC-6, smcoll wrote:
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.

On Saturday, January 11, 2014 10:59:34 AM UTC-6, smcoll wrote:
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?

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/9ca90848-c386-465b-9047-3d5f74991bbf%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate