| Index: fpdfsdk/src/jsapi/fxjs_v8.cpp
|
| diff --git a/fpdfsdk/src/jsapi/fxjs_v8.cpp b/fpdfsdk/src/jsapi/fxjs_v8.cpp
|
| index 72966e9c6376f4011f6a9723eeea987e416b5807..2b77766b7a9e82bcaed9c00db71d1c0780051a70 100644
|
| --- a/fpdfsdk/src/jsapi/fxjs_v8.cpp
|
| +++ b/fpdfsdk/src/jsapi/fxjs_v8.cpp
|
| @@ -761,6 +761,13 @@ double _getLocalTZA()
|
| time_t t = 0;
|
| time(&t);
|
| localtime(&t);
|
| +#if _MSC_VER >= 1900
|
| + // In gcc and in Visual Studio prior to VS 2015 'timezone' is a global
|
| + // variable declared in time.h. That variable was deprecated and in VS 2015
|
| + // is removed, with _get_timezone replacing it.
|
| + long timezone = 0;
|
| + _get_timezone(&timezone);
|
| +#endif
|
| return (double)(-(timezone * 1000));
|
| }
|
|
|
|
|