You are here: Re: [PHP] date("H", $datevalue) always adds an hour? « PHP « IT news, forums, messages
Re: [PHP] date("H", $datevalue) always adds an hour?

Posted by Michael Hulse on 01/21/06 04:23

Hi,

On Jan 20, 2006, at 2:24 AM, Murray @ PlanetThoughtful wrote:
> Can anyone help me figure out how to accommodate for this?

Not sure if this will help, but:

# Set time zone:
putenv('TZ=US/Pacific'); // I am on west-coast, my servers are on east,
if not for this code the timestamp used in my script will reley upon
the server time. This line of code will over-ride server time.

Maybe look-up putenv on php.net and read-up in the comments section, I
usually find good info that way.

Gl,
Cheers,
Micky

 

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

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