summaryrefslogtreecommitdiff
path: root/fxjs/cjs_util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fxjs/cjs_util.cpp')
-rw-r--r--fxjs/cjs_util.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fxjs/cjs_util.cpp b/fxjs/cjs_util.cpp
index 0c40b10117..6d883cc0bc 100644
--- a/fxjs/cjs_util.cpp
+++ b/fxjs/cjs_util.cpp
@@ -370,7 +370,7 @@ CJS_Result CJS_Util::scand(CJS_Runtime* pRuntime,
WideString sDate = pRuntime->ToWideString(params[1]);
double dDate = JS_GetDateTime();
if (sDate.GetLength() > 0)
- dDate = CJS_PublicMethods::MakeRegularDate(sDate, sFormat, nullptr);
+ dDate = CJS_PublicMethods::ParseDateUsingFormat(sDate, sFormat, nullptr);
if (std::isnan(dDate))
return CJS_Result::Success(pRuntime->NewUndefined());