From 162b91136ceb5a73caa9eac984db2d3dc3393684 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Thu, 10 Feb 2005 14:31:32 +0000 Subject: [PATCH] - fix #30745 and #31853 (php-bugs at demark dot org, pierre) --- ext/standard/sunfuncs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.40.0