]> git.sesse.net Git - pr0n/blobdiff - perl/Sesse/pr0n/Common.pm
Always show dates in GMT; it is the law.
[pr0n] / 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 });
 }