diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2007-06-07 02:21:26 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2007-06-07 02:21:26 +0000 |
| commit | 594fe5c398f0d137e1310798d24488dbc1a834e7 (patch) | |
| tree | 5910757777304a9efcaef56b1f68d69f1cde8e6b /ext/date/php_date.c | |
| parent | d02356922a589443ecd9645df39833d8439f01f3 (diff) | |
| download | php-git-594fe5c398f0d137e1310798d24488dbc1a834e7.tar.gz | |
Fixed typo
Diffstat (limited to 'ext/date/php_date.c')
| -rw-r--r-- | ext/date/php_date.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/date/php_date.c b/ext/date/php_date.c index 4a74f2c91c..49f76d6a06 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -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) { |
