From: Ilia Alshanetsky Date: Thu, 7 Jun 2007 02:21:26 +0000 (+0000) Subject: Fixed typo X-Git-Tag: php-5.2.4RC1~392 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=594fe5c398f0d137e1310798d24488dbc1a834e7;p=php Fixed typo --- diff --git a/ext/date/php_date.c b/ext/date/php_date.c index 4a74f2c91c..49f76d6a06 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -2329,9 +2329,9 @@ static void php_do_date_sunrise_sunset(INTERNAL_FUNCTION_PARAMETERS, int calc_su N = (calc_sunset ? h_set : h_rise) + gmt_offset; if (N > 24) { - N -= floor(N / 24) * N; + N -= floor(N / 24) * 24; } else if (N < 0) { - N = floor(N / 24) * -N + 24; + N = floor(N / 24) * 24 + 24; } switch (retformat) {