#30745 [NEW]: Functions date_sunset() and date_sunrise() return incorrect timestamps.
| From: | assassin at pf dot pl | Date: | Wed, 10 Nov 2004 11:40:04 +0000 |
| Subject: | #30745 [NEW]: Functions date_sunset() and date_sunrise() return incorrect timestamps. | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-68890@lists.php.net to get a copy of this message | ||
From: assassin at pf dot pl
Operating system: Windows XP
PHP version: 5.0.2
PHP Bug Type: Date/time related
Bug description: Functions date_sunset() and date_sunrise() return incorrect timestamps.
Description:
------------
Functions date_sunset() and date_sunrise() return incorrect timestamps.
Reproduce code:
---------------
$sunrise = date_sunrise(time(),SUNFUNCS_RET_TIMESTAMP);
$sunset = date_sunset(time(),SUNFUNCS_RET_TIMESTAMP);
$day_length = $sunset - $sunrise;
echo($day_length); //This line shows number of minutes, not seconds.
echo date("Y m d G:i:s", $sunrise); //This line shows incorrect time.
--
Edit bug report at http://bugs.php.net/?id=30745&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30745&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30745&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30745&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=30745&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=30745&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=30745&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=30745&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=30745&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=30745&r=support
Expected behavior: http://bugs.php.net/fix.php?id=30745&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=30745&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=30745&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=30745&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30745&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=30745&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=30745&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=30745&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=30745&r=float
MySQL Configuration Error: http://bugs.php.net/fix.php?id=30745&r=mysqlcfg