]> granicus.if.org Git - php/commitdiff
Fixed typo
authorIlia Alshanetsky <iliaa@php.net>
Thu, 7 Jun 2007 02:21:26 +0000 (02:21 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Thu, 7 Jun 2007 02:21:26 +0000 (02:21 +0000)
ext/date/php_date.c

index 4a74f2c91cb176f300310859a01e022a233ecde5..49f76d6a06ecb8762af86f60a320a877118c5875 100644 (file)
@@ -2329,9 +2329,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) {