summaryrefslogtreecommitdiff
path: root/fpdfsdk/cpdfsdk_datetime.cpp
diff options
context:
space:
mode:
authorRyan Harrison <rharrison@chromium.org>2018-08-10 19:03:47 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-08-10 19:03:47 +0000
commitf36a4644b828bd9ad214a42511af91b4a1073eea (patch)
tree05231ac87adbac430efcb2b53a97c5886df15047 /fpdfsdk/cpdfsdk_datetime.cpp
parent70cca3663a0ea6c290b55c290ba5eb1f1c9db572 (diff)
downloadpdfium-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 'fpdfsdk/cpdfsdk_datetime.cpp')
-rw-r--r--fpdfsdk/cpdfsdk_datetime.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/cpdfsdk_datetime.cpp b/fpdfsdk/cpdfsdk_datetime.cpp
index 332ae8e62e..f0d50911aa 100644
--- a/fpdfsdk/cpdfsdk_datetime.cpp
+++ b/fpdfsdk/cpdfsdk_datetime.cpp
@@ -93,7 +93,7 @@ void CPDFSDK_DateTime::ResetDateTime() {
tzset();
time_t curTime;
- time(&curTime);
+ FXSYS_time(&curTime);
struct tm* newtime = localtime(&curTime);
m_year = newtime->tm_year + 1900;