Time zone discrepancy - America/New_York = CDT?

Time zone discrepancy - America/New_York = CDT?

am 01.11.2009 09:48:47 von Nathan Lebovic

--0015174c3c1c4f7a5904774b54b5
Content-Type: text/plain; charset=ISO-8859-1

I'm using PHP 5.2.6; I just updated timezones with PECL timezonedb to make
sure that wasn't the problem.

These are the results that I'm getting, which I cannot figure out:

date_default_timezone_set("America/New_York");
echo date("e"); //output "America/New_York"
echo date("T"); //output "CST"

date_default_timezone_set("EST");
echo date("e"); //output "EST"
echo date("T"); //output "CDT"

Any ideas?

Thanks,

- Nathan

--0015174c3c1c4f7a5904774b54b5--

Re: Time zone discrepancy - America/New_York = CDT?

am 01.11.2009 09:50:50 von Nathan Lebovic

Sorry there was a typo in that output. This is what I'm getting:

date_default_timezone_set("America/New_York");
echo date("e"); //output "America/New_York"
echo date("T"); //output "CST"

date_default_timezone_set("EST");
echo date("e"); //output "EST"
echo date("T"); //output "EST"

- Nathan


On Sun, Nov 1, 2009 at 3:48 AM, Nathan Lebovic wrote:
>
> I'm using PHP 5.2.6; I just updated timezones with PECL timezonedb to make sure that wasn't the problem.
>
> These are the results that I'm getting, which I cannot figure out:
>
> date_default_timezone_set("America/New_York");
> echo date("e"); //output "America/New_York"
> echo date("T"); //output "CST"
>
> date_default_timezone_set("EST");
> echo date("e"); //output "EST"
> echo date("T"); //output "CDT"
>
> Any ideas?
>
> Thanks,
>
> - Nathan

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: Time zone discrepancy - America/New_York = CDT?

am 01.11.2009 19:21:50 von Mattias Thorslund

The output I get (after adding newlines to the output) is:
America/New_York
EST
EST
EST

PHP 5.2.10. I suspect this comes from the operating system. Maybe update
your tzdata package if you're on a Linux system.

Cheers,

Mattias

Nathan Lebovic wrote:
> Sorry there was a typo in that output. This is what I'm getting:
>
> date_default_timezone_set("America/New_York");
> echo date("e"); //output "America/New_York"
> echo date("T"); //output "CST"
>
> date_default_timezone_set("EST");
> echo date("e"); //output "EST"
> echo date("T"); //output "EST"
>
> - Nathan
>
>
> On Sun, Nov 1, 2009 at 3:48 AM, Nathan Lebovic wrote:
>
>> I'm using PHP 5.2.6; I just updated timezones with PECL timezonedb to make sure that wasn't the problem.
>>
>> These are the results that I'm getting, which I cannot figure out:
>>
>> date_default_timezone_set("America/New_York");
>> echo date("e"); //output "America/New_York"
>> echo date("T"); //output "CST"
>>
>> date_default_timezone_set("EST");
>> echo date("e"); //output "EST"
>> echo date("T"); //output "CDT"
>>
>> Any ideas?
>>
>> Thanks,
>>
>> - Nathan
>>
>
>


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php