mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +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
@@ -61,7 +61,7 @@ public:
|
||||
int utc_milliseconds() const { return milliseconds(); }
|
||||
int utc_minutes() const;
|
||||
int utc_month() const;
|
||||
int utc_seconds() const { return seconds(); }
|
||||
int utc_seconds() const;
|
||||
|
||||
String date_string() const { return m_datetime.to_string("%a %b %d %Y"); }
|
||||
// FIXME: Deal with timezones once SerenityOS has a working tzset(3)
|
||||
|
||||
Reference in New Issue
Block a user