wtforms/wtforms — pull request #11 by andymccurdy (2013-09-25 21:16:21+00:00)
Title: Django DateTimeField that supports Django's timezone functionality

This patch creates a specialized DateTimeField for Django that behaves just like Django's builtin DateTimeField with regard to timezones.

Date/Time strings passed to a wtforms.ext.django.fields.DateTimeField field will be coerced to a datetime object with the tzinfo set based on the currently activated timezone in Django.

Timezone aware `datetime` objects that are found on `obj=` or in keyword arguments passed to the form will be converted to the currently activated timezone in Django. DateTimeFields on the form will then be rendered in that timezone.