From: Pierre Joye Date: Thu, 10 Feb 2005 14:35:13 +0000 (+0000) Subject: - MFH: fix #30745 and #31853 X-Git-Tag: php-5.0.4RC1~182 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5bdea6fa79622ce1a5a4fd3eb80a0c147ce9a759;p=php - MFH: fix #30745 and #31853 --- diff --git a/ext/standard/sunfuncs.c b/ext/standard/sunfuncs.c index 0666eb18c0..0a41c85ba5 100644 --- a/ext/standard/sunfuncs.c +++ b/ext/standard/sunfuncs.c @@ -204,7 +204,7 @@ static void php_do_date_sunrise_sunset(INTERNAL_FUNCTION_PARAMETERS, int calc_su switch (retformat) { case SUNFUNCS_RET_TIMESTAMP: - RETURN_LONG((int) (time - (time % (24 * 3600))) + (int) (60 * ret)); + RETURN_LONG((int) (time - (time % (24 * 3600))) + (int) (3600 * ret)); break; case SUNFUNCS_RET_STRING: N = (int) ret;