Bug #53148 [NEW]: date_sunrise and date_sunset show tomorrow's times for some timezones.
| From: | sec at mboca dot com | Date: | Mon, 25 Oct 2010 01:44:02 +0000 |
| Subject: | Bug #53148 [NEW]: date_sunrise and date_sunset show tomorrow's times for some timezones. | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-155492@lists.php.net to get a copy of this message | ||
From:
Operating system: linux and windows
PHP version: 5.2.14
Package: Math related
Bug Type: Bug
Bug description:date_sunrise and date_sunset show tomorrow's times for some timezones.
Description:
------------
when you try to get sunrise and sunset times from the area that have GMT
+12 or over. the sunrise and sunset times will be listed for next day.
The sunrise and sunset times should be listed for today.
http://weatherpixel.com/bug.php
the source code is at http://weatherpixel.com/bug.php?src=show
one of the examples that the Fiji Island times would only show for tomorrow
and
my script would show it as night as always.
http://weatherpixel.com/sunrise_gmt.php?station=NFFN
Here is my configure line for linux:
./configure --enable-sockets --enable-calendar --with-curl=/usr/lib/
--with-gd --with-jpeg-dir=/usr/local/lib --with-png-dir=/usr/local/lib
--with-ttf --enable-gd-native-ttf --with-gettext
--with-freetype-dir=/usr/local/lib --without-sqlite --without-pdo-sqlite
--with-apxs2=/usr/local/apache2/bin/apxs
Test script:
---------------
here is php script that reproduce the date_sunrise
http://weatherpixel.com/bug.php?src=show
Expected result:
----------------
the times for +12 GMT and more than +12 GMT will always show tomorrow's
sunrise and sunset times.
--
Edit bug report at http://bugs.php.net/bug.php?id=53148&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=53148&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=53148&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=53148&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=53148&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=53148&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=53148&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=53148&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=53148&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=53148&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=53148&r=support
Expected behavior: http://bugs.php.net/fix.php?id=53148&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=53148&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=53148&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=53148&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=53148&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=53148&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=53148&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=53148&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=53148&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=53148&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=53148&r=mysqlcfg