#18691: No timezone support for TimeField -------------------------------------+------------------------------------- Reporter: tejinderss@… | Owner: nobody Type: Bug | Status: closed Component: Database layer | Version: 1.4 (models, ORM) | Resolution: wontfix Severity: Normal | Triage Stage: Keywords: timezone, datetime, | Unreviewed datetimefield, timefield | Needs documentation: 0 Has patch: 0 | Patch needs improvement: 0 Needs tests: 0 | UI/UX: 0 Easy pickings: 0 | -------------------------------------+-------------------------------------
Comment (by aaugustin): Here's how aware-datetime support was added `DateTimeField`: https://github.com/django/django/commit/9b1cb755a2#L14L735 You must do similar changes in a custom `TimeField`. You can either inherit Django's `TimeField` and override a few methods or copy its definition and edit it -- I don't know which way will look more clean. -- Ticket URL: <https://code.djangoproject.com/ticket/18691#comment:3> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.