Re: PHP 4.0 Bug #8553: mktime() report inconsistent
| From: | George Herson | Date: | Thu, 04 Jan 2001 21:12:52 +0000 |
| Subject: | Re: PHP 4.0 Bug #8553: mktime() report inconsistent | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-42987@lists.php.net to get a copy of this message | ||
I was using timestamps because they're immune from DST but I forgot that the input to mktime()
isn't. Next time i get out the calendar. :-)
thank u,
george
Rasmus Lerdorf wrote:
> Congratulations, you have discovered daylight savings time
>
> On 4 Jan 2001 gherson@snet.net wrote:
>
> > From: gherson@snet.net
> > Operating system: Linux RedHat 6.2
> > PHP version: 4.0.4
> > PHP Bug Type: Date/time related
> > Bug description: mktime() report inconsistent
> >
> > Hi. As the below script will show, I sometimes need to add an hour to mktime()'s
> > calculations to make its output consistent with other mktime() output. In the below loop that tests
> > 400 days, the hour offset is needed for days 87 - 296.
> <snip>