]> git.sesse.net Git - pr0n/commitdiff
Always show dates in GMT; it is the law.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 19 Nov 2015 18:42:31 +0000 (19:42 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 19 Nov 2015 18:42:31 +0000 (19:42 +0100)
perl/Sesse/pr0n/Common.pm

index ab90961dc567a127236c5eae822c9e491c2d85c2..2f3c5e95173f4b9c1f5464a842c57a667bcf4de9 100644 (file)
@@ -1026,7 +1026,7 @@ sub get_all_cache_urls {
 sub set_last_modified {
        my ($res, $mtime) = @_;
 
-       my $str = POSIX::strftime("%a, %d %b %Y %H:%M:%S %Z", localtime($mtime));
+       my $str = POSIX::strftime("%a, %d %b %Y %H:%M:%S GMT", gmtime($mtime));
        $res->headers({ 'Last-Modified' => $str });
 }