django-timezones
django-timezones copied to clipboard
Template tags for converting UTC to local time
I've written a bunch of template tags which convert UTC datetimes and timestamps to a local timezone. For example:
Last modified: {% localdt item.modified_utc %} ({% localtimesince time.modified_utc %})
Which converts the input datetimes to the timezone specified by the localtz
context variable (it can also be explicitly specified, and all those other sensible things).
Would such a patch be accepted?