Changing datetime formatting from |format to .stftime()

This commit is contained in:
Christopher Allan Webber 2011-08-20 09:04:21 -05:00
parent f645bde8fd
commit ff9ad4617d

View File

@ -34,9 +34,7 @@
</h2> </h2>
<p class="media_uploader"> <p class="media_uploader">
{% trans date="%4d-%02d-%02d"|format( {% trans date=media.created.strftime("%Y-%m-%d"),
media.created.year,
media.created.month, media.created.day),
user_url=request.urlgen( user_url=request.urlgen(
'mediagoblin.user_pages.user_home', 'mediagoblin.user_pages.user_home',
user=media.uploader().username), user=media.uploader().username),
@ -88,11 +86,7 @@
comment = comment['_id'], comment = comment['_id'],
user = media.uploader().username, user = media.uploader().username,
media = media._id) }}#comment"> media = media._id) }}#comment">
{{ "%4d-%02d-%02d %02d:%02d"|format(comment.created.year, {{ comment.created.strftime("%Y-%m-%d %I:%M%p") }}
comment.created.month,
comment.created.day,
comment.created.hour,
comment.created.minute) }}
</a> </a>
</div> </div>
</div> </div>