mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-02 14:48:15 +00:00
LibJS: Make Date.getUTCSeconds() call through to LibC
The tzset documentation says that TZ allows a per-second local timezone, so don't be needlessly clever here. No observable behavior difference at this point, but if we ever implement tzset, this will have a small effect.
This commit is contained in:
committed by
Andreas Kling
parent
2191ec591f
commit
697faba147
@@ -87,6 +87,11 @@ int Date::utc_month() const
|
||||
return to_utc_tm().tm_mon;
|
||||
}
|
||||
|
||||
int Date::utc_seconds() const
|
||||
{
|
||||
return to_utc_tm().tm_sec;
|
||||
}
|
||||
|
||||
String Date::iso_date_string() const
|
||||
{
|
||||
auto tm = to_utc_tm();
|
||||
|
||||
Reference in New Issue
Block a user