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 22:40

Message-ID: <1143660234.737193.40730@i40g2000cwc.googlegroups.com> from
Mike contained the following:

>I'm still unconvinced that it's not a bug though, I think strtotime()
>should take that into account and produce the appropriate timestamp
>which would result in the date being the 26 March. Simply because I
>wanted to know what the timestamp was for 'last Sunday' and anything
>which produces a timestamp for anything that's not last Sunday is wrong
>IMHO.

To be fair, the documentation does say that strtotime only /attempts/ to
give the correct timestamp. I suppose the problem is that daylight
saving is not universal. However, if my desktop computer knows when it
is, so I'll take your point that my server should also.

Does mktime() have the same problem?

--
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

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