Add timezone to datetime objects. Refs #962.

Based on https://github.com/getpelican/pelican/pull/977, but it adds
timezone information before formatting.

Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
This commit is contained in:
OGINO Masanori 2014-06-10 09:47:14 +09:00
commit 2c50ccb764
92 changed files with 259 additions and 247 deletions

View file

@ -33,7 +33,7 @@
<article>
<h1 class="entry-title"><a href="./filename_metadata-example.html">FILENAME_METADATA example</a></h1>
<footer class="post-info">
<abbr class="published" title="2012-11-30T00:00:00">
<abbr class="published" title="2012-11-30T00:00:00+01:00">
Published: Fri 30 November 2012
</abbr>
@ -58,7 +58,7 @@
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="2012-02-29T00:00:00">
<abbr class="published" title="2012-02-29T00:00:00+01:00">
Published: Wed 29 February 2012
</abbr>
@ -83,7 +83,7 @@
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="2011-04-20T00:00:00">
<abbr class="published" title="2011-04-20T00:00:00+02:00">
Published: Wed 20 April 2011
</abbr>
@ -107,7 +107,7 @@
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="2011-02-17T00:00:00">
<abbr class="published" title="2011-02-17T00:00:00+01:00">
Published: Thu 17 February 2011
</abbr>