ID:               16536
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Bogus
 Bug Type:         Date/time related
 Operating System: mac os x
 PHP Version:      4.1.2
 New Comment:

daylight saving time?!

use mktime(12,0,0,...) if you are interested in the date only


Previous Comments:
------------------------------------------------------------------------

[2002-04-10 16:43:37] [EMAIL PROTECTED]

#get the numeric sunday
                $today_var = getdate();
                $today_sec =
mktime(0,0,0,date("m"),date("d"),date("Y"));
                $offset = $today_var[wday] * 86400 ;
                $first_day = $today_sec - $offset;
                $this_week_first_date = date("ymd", $first_day);
                $path=$this_week_first_date;

this just won't get me Sunday this week.. 020407
suddenly at midnight on Monday the 8th it went to 06, this has been
running fine for many many weeks now.

Help

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=16536&edit=1

Reply via email to