Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Nov 22, 2017. It is now read-only.

Conversation

@kurtrwall
Copy link

Attention

You must run a pip install -r requirements.txt to grab the pytz package this introduces as a dependency.

Overview

Timezones are a pain. This makes it so you can pass the name of a timezone and it will be able to create a timestamp much like this MAR 12, 2001 6:15 AM CST

Test

Pass in a ISO8601 timestamp and a timezone name to the date() filter in jinja2. If the output is like the example above then success!

@jimmynotjim @dpford @rosskarchner

@dpford
Copy link
Contributor

dpford commented Jul 1, 2015

Works well

@jimmynotjim
Copy link

Also tested and working

kurtrwall pushed a commit that referenced this pull request Jul 6, 2015
Add timezone to dateformat function
@kurtrwall kurtrwall merged commit a4a9e3e into cfpb:master Jul 6, 2015
@kurtrwall kurtrwall deleted the add-tz-to-dateformat branch July 6, 2015 13:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants