diff --git a/Userland/Libraries/LibJS/Runtime/DateConstructor.cpp b/Userland/Libraries/LibJS/Runtime/DateConstructor.cpp index e77d7e2d1e1..9d21a7907f3 100644 --- a/Userland/Libraries/LibJS/Runtime/DateConstructor.cpp +++ b/Userland/Libraries/LibJS/Runtime/DateConstructor.cpp @@ -159,7 +159,7 @@ Value DateConstructor::construct(Function&) } auto create_invalid_date = [this]() { - auto datetime = Core::DateTime::from_timestamp(static_cast(0)); + auto datetime = Core::DateTime::create(1970, 1, 1, 0, 0, 0); auto milliseconds = static_cast(0); return Date::create(global_object(), datetime, milliseconds, true); };