From 86a61dc374e8abe351df03a1aa6665013cc39345 Mon Sep 17 00:00:00 2001 From: tsepez Date: Fri, 25 Mar 2016 10:00:11 -0700 Subject: util.printd() replaces specified date with current date. Added test case. Several bugs going on here: JS_LocalTime() ignoring argument and returning current time and not factoring in the time zone adjustment. Use of FXSYS_floor() silently casts result to float, losing precision required to extract minutes and seconds. Pre-existing wcsftime escapes not stripped. BUG=pdfium:413 Review URL: https://codereview.chromium.org/1833053002 --- fpdfsdk/javascript/util.h | 7 ------- 1 file changed, 7 deletions(-) (limited to 'fpdfsdk/javascript/util.h') diff --git a/fpdfsdk/javascript/util.h b/fpdfsdk/javascript/util.h index 50fa31ad27..17f252d6dc 100644 --- a/fpdfsdk/javascript/util.h +++ b/fpdfsdk/javascript/util.h @@ -17,7 +17,6 @@ class util : public CJS_EmbedObj { util(CJS_Object* pJSObject); ~util() override; - public: FX_BOOL printd(IJS_Context* cc, const std::vector& params, CJS_Value& vRet, @@ -39,15 +38,9 @@ class util : public CJS_EmbedObj { CJS_Value& vRet, CFX_WideString& sError); - public: - static void printd(const std::wstring& cFormat, - CJS_Date Date, - bool bXFAPicture, - std::wstring& cPurpose); static void printx(const std::string& cFormat, const std::string& cSource, std::string& cPurpose); - static int ParstDataType(std::wstring* sFormat); }; class CJS_Util : public CJS_Object { -- cgit v1.2.3