diff options
author | tsepez <tsepez@chromium.org> | 2016-03-25 10:00:11 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-25 10:00:11 -0700 |
commit | 86a61dc374e8abe351df03a1aa6665013cc39345 (patch) | |
tree | 12e70780099343259eb24730744f53900643d181 /fpdfsdk/javascript/util.h | |
parent | 65ea3949de6536b1c122eadb4ac7828323fbc408 (diff) | |
download | pdfium-86a61dc374e8abe351df03a1aa6665013cc39345.tar.xz |
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
Diffstat (limited to 'fpdfsdk/javascript/util.h')
-rw-r--r-- | fpdfsdk/javascript/util.h | 7 |
1 files changed, 0 insertions, 7 deletions
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<CJS_Value>& 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 { |