8000 Template tags for converting UTC to local time · Issue #15 · brosner/django-timezones · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Template tags for converting UTC to local time #15
Open
@wolever

Description

@wolever

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0