mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
LibCore: Do not refer to extern int daylight
in DateTime::to_string
This variable does not exist on FreeBSD. Co-Authored-By: Al Hoang <13622+hoanga@users.noreply.github.com>
This commit is contained in:
parent
42e22f89a4
commit
32480fbeb9
Notes:
sideshowbarker
2024-07-17 08:46:11 +09:00
Author: https://github.com/BertalanD
Commit: 32480fbeb9
Pull-request: https://github.com/SerenityOS/serenity/pull/14539
Reviewed-by: https://github.com/ADKaster
1 changed files with 4 additions and 0 deletions
|
@ -251,7 +251,11 @@ String DateTime::to_string(StringView format) const
|
|||
format_time_zone_offset(true);
|
||||
break;
|
||||
case 'Z': {
|
||||
#ifndef __FreeBSD__
|
||||
auto const* timezone_name = tzname[daylight];
|
||||
#else
|
||||
auto const* timezone_name = tzname[0];
|
||||
#endif
|
||||
builder.append({ timezone_name, strlen(timezone_name) });
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue