aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-09-02 19:29:40 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-09-02 19:29:40 +0000
commitef43bff1ca455cf9608d463408598924220cb4e3 (patch)
tree5fd6a72a0d733a84ac1abfc0245df536ec6a2ef9 /IkiWiki
parentb610ca5cbf7dd17fcc9c9b67405616cf63f199d9 (diff)
downloadikiwiki-ef43bff1ca455cf9608d463408598924220cb4e3.tar
ikiwiki-ef43bff1ca455cf9608d463408598924220cb4e3.tar.gz
* Correct generation of RFC 3339 format times for atom/rss feeds. Always use
gmtime for these since a time zone is not specified.
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/inline.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm
index f0c37c1e9..30b09d1ad 100644
--- a/IkiWiki/Plugin/inline.pm
+++ b/IkiWiki/Plugin/inline.pm
@@ -315,7 +315,7 @@ sub date_3339 ($) { #{{{
my $lc_time=POSIX::setlocale(&POSIX::LC_TIME);
POSIX::setlocale(&POSIX::LC_TIME, "C");
- my $ret=POSIX::strftime("%Y-%m-%dT%H:%M:%SZ", localtime($time));
+ my $ret=POSIX::strftime("%Y-%m-%dT%H:%M:%SZ", gmtime($time));
POSIX::setlocale(&POSIX::LC_TIME, $lc_time);
return $ret;
} #}}}