You are here: Re: Strtotime() / date() Bug in PHP - all versions « All PHP « IT news, forums, messages
Re: Strtotime() / date() Bug in PHP - all versions

Posted by Geoff Berrow on 03/29/06 19:58

Message-ID: <442aba31$0$6961$ed2619ec@ptn-nntp-reader02.plus.net> from
Michael J Martin contained the following:

>I think it's something to do with the Daylight time saving. But
>nonetheless it's still a bug because PHP should take this into account
>as 'last Sunday' was definitely the 26 March 2006.

But what you are getting is the date 'last Sunday' started relative to
now.

I had a similar problem with a script I wrote for a client. It insisted
on saying that Mother's day (UK) was on a Saturday.

As you've discovered, you just have to move the point away from the
changeover time.


--
Geoff Berrow 0110001001101100010000000110
001101101011011001000110111101100111001011
100110001101101111001011100111010101101011

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация