Re: cvs: php-src(PHP_5_1) /ext/date php_date.c

From: Date: Fri, 07 Oct 2005 19:53:45 +0000
Subject: Re: cvs: php-src(PHP_5_1) /ext/date php_date.c
References: 1  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-34407@lists.php.net to get a copy of this message
derick Wed Oct 5 07:06:57 2005 EDT
 Modified files:              (Branch: PHP_5_1)
/php-src/ext/date php_date.c Log: - Implement correct Windows timezone guessing.
Thanks for you work, Derick! However after checking the correct TZ, you forgot to return it :) Something like the above will work: Index: php_date.c =================================================================== RCS file: /repository/php-src/ext/date/php_date.c,v retrieving revision 1.59 diff -u -r1.59 php_date.c --- php_date.c 7 Oct 2005 13:33:13 -0000 1.59 +++ php_date.c 7 Oct 2005 19:43:54 -0000 @@ -357,8 +357,8 @@
    }
    php_error_docref(NULL TSRMLS_CC, E_STRICT, "It is not safe to rely on the systems timezone settings, please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. We use '%s' for '%.1f/DST' instead.", tzid, (float) ((tzi.Bias + tzi.DaylightBias) / -60));
    break;
- } + return tzid; } #endif /* Fallback to UTC */ Nuno

« previous php.cvs (#34407) next »