| Index: fpdfsdk/javascript/JS_Value.cpp
 | 
| diff --git a/fpdfsdk/javascript/JS_Value.cpp b/fpdfsdk/javascript/JS_Value.cpp
 | 
| index b01ee586e1ebdd94ea870c2030e87ef9701fc238..1b8964bd00ed51b910cf521dfdb1865af006b269 100644
 | 
| --- a/fpdfsdk/javascript/JS_Value.cpp
 | 
| +++ b/fpdfsdk/javascript/JS_Value.cpp
 | 
| @@ -753,7 +753,7 @@ int _DateFromTime(double t) {
 | 
|  double JS_GetDateTime() {
 | 
|    if (!FSDK_IsSandBoxPolicyEnabled(FPDF_POLICY_MACHINETIME_ACCESS))
 | 
|      return 0;
 | 
| -  time_t t = time(NULL);
 | 
| +  time_t t = time(nullptr);
 | 
|    struct tm* pTm = localtime(&t);
 | 
|  
 | 
|    int year = pTm->tm_year + 1900;
 | 
| 
 |