Bug #15272 Updated: JDDayOfWeek result wrong by one day

From: Date: Tue, 09 Apr 2002 22:58:35 +0000
Subject: Bug #15272 Updated: JDDayOfWeek result wrong by one day
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-4491@lists.php.net to get a copy of this message
ID: 15272 Updated by: jimw@php.net Reported By: ncb999@NOSPAMhotmail.com -Status: Open +Status: Bogus Bug Type: Calendar related Operating System: WinXP PHP Version: 4.1.1 New Comment: works just fine for me. my test code: <?php $ts = mktime(12,0,0,1,29,2002); $jd = unixtojd($ts); echo jddayofweek($jd); # outputs '2' Previous Comments: ------------------------------------------------------------------------ [2002-01-29 04:17:48] ncb999@NOSPAMhotmail.com JDDayOfWeek returns a result which is wrong by one day, for instance it says that Jan. 29th, 2002 is a 1, Monday, or Mon, depending on the mode. That date is actually a Tuesday. I'm using the standard ISAPI build 4.1.1 downloaded from PHP.net, with the php_gd.dll library. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=15272&edit=1

« previous php.bugs (#4491) next »