diff options
Diffstat (limited to 'sal/osl/unx/time.c')
-rw-r--r-- | sal/osl/unx/time.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sal/osl/unx/time.c b/sal/osl/unx/time.c index 1afaaf6c33a9..14d4ec02d257 100644 --- a/sal/osl/unx/time.c +++ b/sal/osl/unx/time.c @@ -155,6 +155,10 @@ sal_Bool SAL_CALL osl_getTimeValueFromDateTime( const oslDateTime* pDateTime, Ti aTime.tm_wday = 0; aTime.tm_yday = 0; +#if defined(STRUCT_TM_HAS_GMTOFF) + aTime.tm_gmtoff = 0; +#endif + /* Convert time to calendar value */ nSeconds = mktime( &aTime ); |