]> sipb.mit.edu Git - ikiwiki.git/commitdiff
* Fix dates in rss feeds if running localised, so they're still rfc 822.
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sat, 5 Aug 2006 00:45:03 +0000 (00:45 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sat, 5 Aug 2006 00:45:03 +0000 (00:45 +0000)
IkiWiki/Plugin/inline.pm
debian/changelog

index 4e64d9f8cc088ec337475e771a644ec5820a8daa..56adaf509574e214bc01bb93c5859125fa165de1 100644 (file)
@@ -138,7 +138,11 @@ sub date_822 ($) { #{{{
        my $time=shift;
 
        eval q{use POSIX};
-       return POSIX::strftime("%a, %d %b %Y %H:%M:%S %z", localtime($time));
+       my $lc_time= POSIX::setlocale(&POSIX::LC_TIME);
+       POSIX::setlocale(&POSIX::LC_TIME, "C");
+       my $ret=POSIX::strftime("%a, %d %b %Y %H:%M:%S %z", localtime($time));
+       POSIX::setlocale(&POSIX::LC_TIME, $lc_time);
+       return $ret;
 } #}}}
 
 sub absolute_urls ($$) { #{{{
index d68a37864891bb69f233172343ebeac63e63813d..81057a046da16366046d439f521d6807118b970c 100644 (file)
@@ -20,8 +20,9 @@ ikiwiki (1.16) UNRELEASED; urgency=low
   * Add a new format hook, and make tidy use it, since tidy can really only
     operate on and output complete html documents, not the body chunks
     that sanitise gets.
+  * Fix dates in rss feeds if running localised, so they're still rfc 822.
 
- -- Joey Hess <joeyh@debian.org>  Fri,  4 Aug 2006 03:33:09 -0400
+ -- Joey Hess <joeyh@debian.org>  Fri,  4 Aug 2006 20:43:42 -0400
 
 ikiwiki (1.15) unstable; urgency=low