diff --git a/Userland/Libraries/LibCore/DateTime.cpp b/Userland/Libraries/LibCore/DateTime.cpp index 4a5dc66c04..bf09253f77 100644 --- a/Userland/Libraries/LibCore/DateTime.cpp +++ b/Userland/Libraries/LibCore/DateTime.cpp @@ -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; }