From 485a017a88949b92b59edf49197c4c09be910665 Mon Sep 17 00:00:00 2001 From: joey Date: Sat, 5 Aug 2006 00:45:03 +0000 Subject: [PATCH 1/1] * Fix dates in rss feeds if running localised, so they're still rfc 822. --- IkiWiki/Plugin/inline.pm | 6 +++++- debian/changelog | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm index 4e64d9f8c..56adaf509 100644 --- a/IkiWiki/Plugin/inline.pm +++ b/IkiWiki/Plugin/inline.pm @@ -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 ($$) { #{{{ diff --git a/debian/changelog b/debian/changelog index d68a37864..81057a046 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Fri, 4 Aug 2006 03:33:09 -0400 + -- Joey Hess Fri, 4 Aug 2006 20:43:42 -0400 ikiwiki (1.15) unstable; urgency=low -- 2.45.0