#24912 [Bgs->Opn]: Date function returns incorrect time zone

2003-08-02 Thread mark at katmoda dot com
 ID:   24912
 User updated by:  mark at katmoda dot com
 Reported By:  mark at katmoda dot com
-Status:   Bogus
+Status:   Open
-Bug Type: Date/time related
+Bug Type: Mail related
 Operating System: windows xp/ win2k
 PHP Version:  5.0.0b1 (beta1)
 New Comment:

What you state means that there is a bug in de mail() function. Because
that function sends a +0100 value with the date header. Isn't this
true?


Previous Comments:


[2003-08-01 19:26:53] [EMAIL PROTECTED]

You are in GMT+0100 in winter and GMT+0200 in summer, see e.g.
<http://greenwichmeantime.com/local/europe/nl.htm>. GMT doesn't have
daylight savings, it's fixed.




[2003-08-01 18:30:59] mark at katmoda dot com

Description:

I just found out this on my windows XP machine:

background info:

- I live in the Netherlands (timezone= GMT+1)

When you enable the option to automaticaly adjust your system clock for
daylight savings (on windows' control panel), php's date() function and
the Date header in the mail function will return different time zones.

an example:


now $test is: "+0200"

But if I send a mail with php using the mail() function the Date header
is telling me +0100 (which seems to me is right because I live in the
Netherlands where timezone=GMT+1)

This bug can be caused by windows (returning the wrong timezone to
php's date() function). Or php's date() function is doing something
wrong itself.

I found this trying to figure out why my emails appeared to be sent one
hour later than they really were sent. (I use Mozilla mail and
appearantly it suffers from the same bug as php's date() function ).

Reproduce code:
---
 Date and Time> Time zone
# set to enabled
?>

Expected result:

Sat, 02 Aug 03 01:17:02 +0100

Actual result:
--
Sat, 02 Aug 03 01:17:02 +0200





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



#24912 [NEW]: Date function returns incorrect time zone

2003-08-01 Thread mark at katmoda dot com
From: mark at katmoda dot com
Operating system: windows xp/ win2k
PHP version:  5.0.0b1 (beta1)
PHP Bug Type: Date/time related
Bug description:  Date function returns incorrect time zone

Description:

I just found out this on my windows XP machine:

background info:

- I live in the Netherlands (timezone= GMT+1)

When you enable the option to automaticaly adjust your system clock for
daylight savings (on windows' control panel), php's date() function and
the Date header in the mail function will return different time zones.

an example:


now $test is: "+0200"

But if I send a mail with php using the mail() function the Date header is
telling me +0100 (which seems to me is right because I live in the
Netherlands where timezone=GMT+1)

This bug can be caused by windows (returning the wrong timezone to php's
date() function). Or php's date() function is doing something wrong
itself.

I found this trying to figure out why my emails appeared to be sent one
hour later than they really were sent. (I use Mozilla mail and appearantly
it suffers from the same bug as php's date() function ).

Reproduce code:
---
 Date and Time> Time zone
# set to enabled
?>

Expected result:

Sat, 02 Aug 03 01:17:02 +0100

Actual result:
--
Sat, 02 Aug 03 01:17:02 +0200

-- 
Edit bug report at http://bugs.php.net/?id=24912&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=24912&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=24912&r=trysnapshot5
Fixed in CVS:   http://bugs.php.net/fix.php?id=24912&r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=24912&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24912&r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=24912&r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=24912&r=support
Expected behavior:  http://bugs.php.net/fix.php?id=24912&r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=24912&r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=24912&r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=24912&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24912&r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=24912&r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=24912&r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=24912&r=gnused