From: Pierre Joye Date: Thu, 10 Feb 2005 14:31:32 +0000 (+0000) Subject: - fix #30745 and #31853 (php-bugs at demark dot org, pierre) X-Git-Tag: RELEASE_0_2_2~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=162b91136ceb5a73caa9eac984db2d3dc3393684;p=php - fix #30745 and #31853 (php-bugs at demark dot org, pierre) --- diff --git a/ext/standard/sunfuncs.c b/ext/standard/sunfuncs.c index 67ba3ffe8c..e098a36e65 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;