mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +00:00
LibWeb: Restore flags to prevent formatting timestamps as local time
The flag to stringify these timestamps as UTC was errantly dropped in
6fb2be96bf
. This was causing test-web to
fail in time zones other than GMT+0.
This commit is contained in:
parent
efa9737cf7
commit
3171d57639
Notes:
github-actions[bot]
2025-06-25 21:42:10 +00:00
Author: https://github.com/trflynn89
Commit: 3171d57639
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5216
Reviewed-by: https://github.com/gmta ✅
7 changed files with 63 additions and 18 deletions
|
@ -146,7 +146,7 @@ static HTTP::HeaderMap response_headers_for_file(StringView path, Optional<time_
|
|||
|
||||
if (modified_time.has_value()) {
|
||||
auto const datetime = AK::UnixDateTime::from_seconds_since_epoch(modified_time.value());
|
||||
response_headers.set("Last-Modified"sv, datetime.to_byte_string("%a, %d %b %Y %H:%M:%S GMT"sv));
|
||||
response_headers.set("Last-Modified"sv, datetime.to_byte_string("%a, %d %b %Y %H:%M:%S GMT"sv, AK::UnixDateTime::LocalTime::No));
|
||||
}
|
||||
|
||||
return response_headers;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue