Skip to content

Commit

Permalink
Fix date format
Browse files Browse the repository at this point in the history
  • Loading branch information
guimard committed Dec 2, 2024
1 parent 51a1243 commit 156e648
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion portal/metadata-ttl.patch
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion uwsgi-portal/metadata-ttl.patch
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 156e648

Please sign in to comment.