From 26255ddf1af5c6bc27ff9c0ae942d2c4e720b652 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Thu, 7 Jun 2007 02:21:55 +0000 Subject: [PATCH] Fixed typo --- ext/date/php_date.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/date/php_date.c b/ext/date/php_date.c index 6654618bd9..91046cee00 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -2486,9 +2486,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) { -- 2.50.1