You are here: Re: [PHP] Timezone and DST « PHP « IT news, forums, messages
Re: [PHP] Timezone and DST

Posted by "Chris Boget" on 11/14/31 11:36

> I've got a little problem where our servers are in PST but the
> customer operates in Hawaii (-10 GMT). I believe I can just get the
> time for them by doing something like
> date("d H i", strtotime('now -2 hours') );
> But here's the catch, how should I deal with day light savings ( DST)
> . In hawaii they don't observer DST, but in Washington State we do.

You can use date( 'I' ) to determine whether or not your server is
currently in DST and subtract the appropriate number of hours
accordingly...

thnx,
Chris

 

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

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