diff options
author | Anatol Belski <ab@php.net> | 2015-05-10 21:16:56 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2015-05-10 22:22:01 +0200 |
commit | f22a5bd710ca62175275e0cd5d5143c010e94bf1 (patch) | |
tree | 140e0b60ac5e3340a8f03038b70e982f224a5779 /ext/soap/php_encoding.c | |
parent | 359df4dea8aa87f7b0c86471c312f60697e71b75 (diff) | |
download | php-git-f22a5bd710ca62175275e0cd5d5143c010e94bf1.tar.gz |
fix timezone usage in soap for vc14
Diffstat (limited to 'ext/soap/php_encoding.c')
-rw-r--r-- | ext/soap/php_encoding.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/soap/php_encoding.c b/ext/soap/php_encoding.c index 9c25067f42..96207f7975 100644 --- a/ext/soap/php_encoding.c +++ b/ext/soap/php_encoding.c @@ -2905,7 +2905,7 @@ static xmlNodePtr to_xml_datetime_ex(encodeTypePtr type, zval *data, char *forma #ifdef HAVE_TM_GMTOFF snprintf(tzbuf, sizeof(tzbuf), "%c%02d:%02d", (ta->tm_gmtoff < 0) ? '-' : '+', abs(ta->tm_gmtoff / 3600), abs( (ta->tm_gmtoff % 3600) / 60 )); #else -# if defined(__CYGWIN__) || defined(NETWARE) +# if defined(__CYGWIN__) || defined(NETWARE) || (defined(PHP_WIN32) && defined(_MSC_VER) && _MSC_VER >= 1900) snprintf(tzbuf, sizeof(tzbuf), "%c%02d:%02d", ((ta->tm_isdst ? _timezone - 3600:_timezone)>0)?'-':'+', abs((ta->tm_isdst ? _timezone - 3600 : _timezone) / 3600), abs(((ta->tm_isdst ? _timezone - 3600 : _timezone) % 3600) / 60)); # else snprintf(tzbuf, sizeof(tzbuf), "%c%02d:%02d", ((ta->tm_isdst ? timezone - 3600:timezone)>0)?'-':'+', abs((ta->tm_isdst ? timezone - 3600 : timezone) / 3600), abs(((ta->tm_isdst ? timezone - 3600 : timezone) % 3600) / 60)); |