Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template tags for converting UTC to local time #15

Open
wolever opened this issue Aug 21, 2011 · 0 comments
Open

Template tags for converting UTC to local time #15

wolever opened this issue Aug 21, 2011 · 0 comments

Comments

@wolever
Copy link

wolever commented Aug 21, 2011

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?

randlet pushed a commit to Petro-Viron/django-timezones that referenced this issue Aug 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant