Skip to content
This repository has been archived by the owner on May 16, 2020. It is now read-only.

Commit

Permalink
Use DMY dates
Browse files Browse the repository at this point in the history
  • Loading branch information
jace authored Apr 17, 2017
1 parent ac492b6 commit 3ff373f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kharcha/views/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def shortdate(date):
tz = g.workspace.tz
else:
tz = app.config['tz']
return utc.localize(date).astimezone(tz).strftime('%b %e')
return utc.localize(date).astimezone(tz).strftime('%e %b')


@app.template_filter('longdate')
Expand All @@ -23,7 +23,7 @@ def longdate(date):
tz = g.workspace.tz
else:
tz = app.config['tz']
return utc.localize(date).astimezone(tz).strftime('%B %e, %Y')
return utc.localize(date).astimezone(tz).strftime('%e %B %Y')


@app.context_processor
Expand Down

0 comments on commit 3ff373f

Please sign in to comment.