summaryrefslogtreecommitdiff
path: root/fxjs
diff options
context:
space:
mode:
Diffstat (limited to 'fxjs')
-rw-r--r--fxjs/cfxjse_formcalc_context.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/fxjs/cfxjse_formcalc_context.cpp b/fxjs/cfxjse_formcalc_context.cpp
index 9973df69aa..d164c626b9 100644
--- a/fxjs/cfxjse_formcalc_context.cpp
+++ b/fxjs/cfxjse_formcalc_context.cpp
@@ -6,8 +6,6 @@
#include "fxjs/cfxjse_formcalc_context.h"
-#include <time.h>
-
#include <algorithm>
#include <string>
#include <utility>
@@ -2061,7 +2059,7 @@ void CFXJSE_FormCalcContext::Date(CFXJSE_Value* pThis,
}
time_t currentTime;
- time(&currentTime);
+ FXSYS_time(&currentTime);
struct tm* pTmStruct = gmtime(&currentTime);
args.GetReturnValue()->SetInteger(DateString2Num(