django-timezones icon indicating copy to clipboard operation
django-timezones copied to clipboard

Template tags for converting UTC to local time

Open wolever opened this issue 13 years ago • 0 comments

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?

wolever avatar Aug 21 '11 22:08 wolever