From: Felipe Pena Date: Sun, 26 Oct 2008 01:58:25 +0000 (+0000) Subject: - Fixed bug #46389 (NetWare needs small patch for _timezone) (patch by guenter at... X-Git-Tag: BEFORE_HEAD_NS_CHANGE~163 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0e27614ff946544ed1fbc5383eccb0fb400a6c54;p=php - Fixed bug #46389 (NetWare needs small patch for _timezone) (patch by guenter at php.net) --- diff --git a/ext/soap/php_encoding.c b/ext/soap/php_encoding.c index 34c6e9f95c..84684342f7 100644 --- a/ext/soap/php_encoding.c +++ b/ext/soap/php_encoding.c @@ -2940,7 +2940,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));