]> granicus.if.org Git - php/commitdiff
- fix #30745 and #31853 (php-bugs at demark dot org, pierre)
authorPierre Joye <pajoye@php.net>
Thu, 10 Feb 2005 14:31:32 +0000 (14:31 +0000)
committerPierre Joye <pajoye@php.net>
Thu, 10 Feb 2005 14:31:32 +0000 (14:31 +0000)
ext/standard/sunfuncs.c

index 67ba3ffe8c72dbed0ac2df97239e71ca7f92387e..e098a36e6552ef54a4a711c2e93c4b03eb277b6b 100644 (file)
@@ -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;