From 156e64883d480bd467bcf397c426bcdfc366637b Mon Sep 17 00:00:00 2001 From: Yadd Date: Mon, 2 Dec 2024 21:18:35 +0100 Subject: [PATCH] Fix date format --- portal/metadata-ttl.patch | 2 +- uwsgi-portal/metadata-ttl.patch | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/portal/metadata-ttl.patch b/portal/metadata-ttl.patch index a1a03fb..349660a 100644 --- a/portal/metadata-ttl.patch +++ b/portal/metadata-ttl.patch @@ -23,7 +23,7 @@ push @{ $res->[1] }, 'Cache-Control' => 'public, max-age=' . $args{ttl}; + push @{ $res->[1] }, + 'Last-Modified' => -+ POSIX::strftime( "%a, %b %0e %H:%M:%S %Y", gmtime($args{date}) ) ++ POSIX::strftime( "%a, %b %0e %H:%M:%S %Y GMT", gmtime($args{date}) ) + if $args{date}; } else { diff --git a/uwsgi-portal/metadata-ttl.patch b/uwsgi-portal/metadata-ttl.patch index a1a03fb..349660a 100644 --- a/uwsgi-portal/metadata-ttl.patch +++ b/uwsgi-portal/metadata-ttl.patch @@ -23,7 +23,7 @@ push @{ $res->[1] }, 'Cache-Control' => 'public, max-age=' . $args{ttl}; + push @{ $res->[1] }, + 'Last-Modified' => -+ POSIX::strftime( "%a, %b %0e %H:%M:%S %Y", gmtime($args{date}) ) ++ POSIX::strftime( "%a, %b %0e %H:%M:%S %Y GMT", gmtime($args{date}) ) + if $args{date}; } else {