Re: dst and strtotime
| From: | Tijnema ! | Date: | Tue, 13 Mar 2007 17:44:10 +0000 |
| Subject: | Re: dst and strtotime | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-250477@lists.php.net to get a copy of this message | ||
On 3/13/07, Robert Cummings <robert@interjinn.com> wrote:
On Tue, 2007-03-13 at 13:02 -0400, Robert Cummings wrote: Well that's strange since PHP4 and 5 both use the same ini file on my dev box. And so they both get the following ini setting:As long as you are only interested in the day, there's no problem with adding an extra hour to the strtotime() command, it would work on PHP4 and PHP5. Tijnemadate.timezone="Canada/Eastern"And in php 4.4.4 I get the bad output, but in php 5.2.0 I get the good output. FWIW PHP 4.4.6 has the same issue on my box. PHP5 does not, but PHP 5 also outputs the EST/EDT switch. PHP 4.4.6:2007-03-13 1:38 PM EDT 2007-03-10 11:00 PM ESTPHP 5.2.0:2007-03-13 1:38 PM EDT 2007-03-11 12:00 AM ESTCheers, Rob.
-- .------------------------------------------------------------. | InterJinn Application Framework - http://www.interjinn.com | :------------------------------------------------------------: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn || also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. |`------------------------------------------------------------'