From: Steinar H. Gunderson Date: Thu, 19 Nov 2015 18:42:31 +0000 (+0100) Subject: Always show dates in GMT; it is the law. X-Git-Url: https://git.sesse.net/?p=pr0n;a=commitdiff_plain;h=25da24661e8b79a9c5c6f32af3e3ca949e2943a0 Always show dates in GMT; it is the law. --- diff --git a/perl/Sesse/pr0n/Common.pm b/perl/Sesse/pr0n/Common.pm index ab90961..2f3c5e9 100644 --- a/perl/Sesse/pr0n/Common.pm +++ b/perl/Sesse/pr0n/Common.pm @@ -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 }); }