diff options
author | Felipe Pena <felipe@php.net> | 2008-10-26 02:00:44 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2008-10-26 02:00:44 +0000 |
commit | 5153c1971402a70f928abf41a6ae12144b61d79b (patch) | |
tree | ea0f9f0a527cf7f77a40c2ef387337cfaca2be62 /ext/soap/php_encoding.c | |
parent | 7376ddb66a36e9513df176414189692566a9a941 (diff) | |
download | php-git-5153c1971402a70f928abf41a6ae12144b61d79b.tar.gz |
- MFH: Fixed bug #46389 (NetWare needs small patch for _timezone) (patch by guenter at php.net)
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 b59fd67c53..bcbc623bd5 100644 --- a/ext/soap/php_encoding.c +++ b/ext/soap/php_encoding.c @@ -2989,7 +2989,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 -# ifdef __CYGWIN__ +# if defined(__CYGWIN__) || defined(NETWARE) 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)); |