diff options
author | Ryan Harrison <rharrison@chromium.org> | 2018-08-10 19:03:47 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-08-10 19:03:47 +0000 |
commit | f36a4644b828bd9ad214a42511af91b4a1073eea (patch) | |
tree | 05231ac87adbac430efcb2b53a97c5886df15047 /fxjs/cfxjse_formcalc_context.cpp | |
parent | 70cca3663a0ea6c290b55c290ba5eb1f1c9db572 (diff) | |
download | pdfium-f36a4644b828bd9ad214a42511af91b4a1073eea.tar.xz |
Remove direct calls to timechromium/3519
Replaces them with calles to the proxy function, FXSYS_time, so that
tests may use a stable time value instead of the wall clock value.
BUG=pdfium:1104
Change-Id: I4743c4634f56d4a6cba1f1130c4562a35cee1887
Reviewed-on: https://pdfium-review.googlesource.com/39853
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'fxjs/cfxjse_formcalc_context.cpp')
-rw-r--r-- | fxjs/cfxjse_formcalc_context.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fxjs/cfxjse_formcalc_context.cpp b/fxjs/cfxjse_formcalc_context.cpp index d164c626b9..a2773b27d0 100644 --- a/fxjs/cfxjse_formcalc_context.cpp +++ b/fxjs/cfxjse_formcalc_context.cpp @@ -954,7 +954,7 @@ int32_t DateString2Num(const ByteStringView& szDateString) { void GetLocalTimeZone(int32_t* pHour, int32_t* pMin, int32_t* pSec) { time_t now; - time(&now); + FXSYS_time(&now); struct tm* pGmt = gmtime(&now); struct tm* pLocal = localtime(&now); @@ -2539,7 +2539,7 @@ void CFXJSE_FormCalcContext::Time(CFXJSE_Value* pThis, } time_t now; - time(&now); + FXSYS_time(&now); struct tm* pGmt = gmtime(&now); args.GetReturnValue()->SetInteger( |