aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2011-08-20 09:04:21 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2011-08-20 09:04:21 -0500
commitff9ad4617deef01c9ad94db64470185386eb9f0c (patch)
tree9d374e824a1abe94f422abb6afaaca81d10f643a
parentf645bde8fde96d736f8873e22553c7ee3772c919 (diff)
downloadmediagoblin-ff9ad4617deef01c9ad94db64470185386eb9f0c.tar.lz
mediagoblin-ff9ad4617deef01c9ad94db64470185386eb9f0c.tar.xz
mediagoblin-ff9ad4617deef01c9ad94db64470185386eb9f0c.zip
Changing datetime formatting from |format to .stftime()
-rw-r--r--mediagoblin/templates/mediagoblin/user_pages/media.html10
1 files changed, 2 insertions, 8 deletions
diff --git a/mediagoblin/templates/mediagoblin/user_pages/media.html b/mediagoblin/templates/mediagoblin/user_pages/media.html
index 089c4c23..2086d3d6 100644
--- a/mediagoblin/templates/mediagoblin/user_pages/media.html
+++ b/mediagoblin/templates/mediagoblin/user_pages/media.html
@@ -34,9 +34,7 @@
</h2>
<p class="media_uploader">
- {% trans date="%4d-%02d-%02d"|format(
- media.created.year,
- media.created.month, media.created.day),
+ {% trans date=media.created.strftime("%Y-%m-%d"),
user_url=request.urlgen(
'mediagoblin.user_pages.user_home',
user=media.uploader().username),
@@ -88,11 +86,7 @@
comment = comment['_id'],
user = media.uploader().username,
media = media._id) }}#comment">
- {{ "%4d-%02d-%02d %02d:%02d"|format(comment.created.year,
- comment.created.month,
- comment.created.day,
- comment.created.hour,
- comment.created.minute) }}
+ {{ comment.created.strftime("%Y-%m-%d %I:%M%p") }}
</a>
</div>
</div>