diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-10-29 22:33:15 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-10-29 22:33:15 +0000 |
commit | 06305f5d71c779a3fa2cd514ec34ee443bd0e5f9 (patch) | |
tree | 98f455769b75c3afc8b4b96d8363feebdcfdcc15 /fxjs/cjs_util.cpp | |
parent | 2dd06eb37dd9cb31746b1ab7e9ed306b2a12a3b7 (diff) | |
download | pdfium-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.cpp | 2 |
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()); |