Previously on 24…
I posted [a module for handling time zone-aware datetime objects][oldpost], but I left out all the hassle of dealing with form input. Here is a more complete python package for [Django][django] that includes a form field sub-class that can handle a small set of datetime string formats that include a time zone offset.
[Timezones 0.1][timezones]
This code is released under Django’s BSD license.
[oldpost]: http://reliablybroken.com/b/2009/06/django-and-time-zone-aware-date-fields/
[django]: http://www.djangoproject.com/
[timezones]: http://reliablybroken.com/b/wp-content/uploads/2009/08/timezones-01.tar.gz
Hey,
Your timezones utility looks really useful. Can I convince you to post it on github and pypi?
I might be missing something, but right now it seems like your solution is nicer than the db stuff in https://github.com/brosner/django-timezones
Sam
@Sam Bull Hi Sam, I’d be up for putting the package on pypi (more likely I would share it on bitbucket than github though, would that be a deal-breaker for you?).
Have you used this yourself yet? What might you change / fix?
David B.