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

From: Date: Wed, 06 Jun 2007 23:53:12 +0000
Subject: Re: cvs: php-src(PHP_5_2) /ext/date php_date.c
References: 1  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-44720@lists.php.net to get a copy of this message
I suspect you meant something different here. shouldn't it be: N -= floor(N/24)*24 in both cases?
#include "php.h" #include "php_streams.h" @@ -2329,9 +2329,9 @@ N = (calc_sunset ? h_set : h_rise) + gmt_offset; if (N > 24) { - N %= 24; + N -= floor(N / 24) * N; } else if (N < 0) { - N = N % 24 + 24; + N = floor(N / 24) * -N + 24; } switch (retformat) {
-- Stanislav Malyshev, Zend Products Engineer stas@zend.com http://www.zend.com/

« previous php.cvs (#44720) next »