summaryrefslogtreecommitdiff
path: root/fxjs/cjs_util.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-10-29 22:33:15 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-10-29 22:33:15 +0000
commit06305f5d71c779a3fa2cd514ec34ee443bd0e5f9 (patch)
tree98f455769b75c3afc8b4b96d8363feebdcfdcc15 /fxjs/cjs_util.cpp
parent2dd06eb37dd9cb31746b1ab7e9ed306b2a12a3b7 (diff)
downloadpdfium-06305f5d71c779a3fa2cd514ec34ee443bd0e5f9.tar.xz
Rename CJS_PublicMethods::MakeFormatDate() and MakeRegularDate()
One converts a date into a string, and the other converts a string into a date, so name them after the parse/print convention. Change-Id: I35ea375cecc361c48eb3809fc62c77202335f696 Reviewed-on: https://pdfium-review.googlesource.com/c/44830 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
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());