]> Sergey Matveev's repositories - public-inbox.git/commitdiff
remove incorrect comment about strftime + locales
authorEric Wong <e@80x24.org>
Sat, 7 Jan 2017 01:44:50 +0000 (01:44 +0000)
committerEric Wong <e@80x24.org>
Sat, 7 Jan 2017 01:45:44 +0000 (01:45 +0000)
We only need strftime to be locale-independent when generating
dates for email and HTTP headers.  Purely numeric dates can
use strftime for ease-of-readability.

lib/PublicInbox/SearchMsg.pm
lib/PublicInbox/WwwAtomStream.pm

index 96406c6f9296646ff9534f211eefa461541b7c83..4522eb628d5bdd49e7f9b1c725a2325af034b496 100644 (file)
@@ -69,7 +69,7 @@ sub subject ($) { __hdr($_[0], 'subject') }
 sub to ($) { __hdr($_[0], 'to') }
 sub cc ($) { __hdr($_[0], 'cc') }
 
-# no strftime, that is locale-dependent
+# no strftime, that is locale-dependent and not for RFC822
 my @DoW = qw(Sun Mon Tue Wed Thu Fri Sat);
 my @MoY = qw(Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec);
 
index a6817b31475c4e2df23c9d2ab141d56f64a09b1f..5a10034ba8ecfb33eb90f5210b43af648998fd97 100644 (file)
@@ -6,7 +6,6 @@ package PublicInbox::WwwAtomStream;
 use strict;
 use warnings;
 
-# FIXME: locale-independence:
 use POSIX qw(strftime);
 use Date::Parse qw(strptime);
 use Digest::SHA qw(sha1_hex);