From 594fe5c398f0d137e1310798d24488dbc1a834e7 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Thu, 7 Jun 2007 02:21:26 +0000 Subject: Fixed typo --- ext/date/php_date.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext') 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) { -- cgit v1.2.1