Re: [PHP] date() is hours behind

2003-09-30 Thread PHP Webmaster
Jon Kriek [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Well I meant just putenv('TZ=US/Eastern'); But you get the idea. -- Jon Kriek http://phpfreaks.com Jon Kriek [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] See the putenv() function. For example to get

Re: [PHP] date() is hours behind

2003-09-30 Thread Jon Kriek
putenv('TZ=Europe/London'); OR putenv('TZ=GMT'); -- Jon Kriek http://phpfreaks.com Php Webmaster [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm in London and and my timezone is GMT, so what should I use? -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] date() is hours behind

2003-09-30 Thread PHP Webmaster
Jon Kriek [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] putenv('TZ=Europe/London'); OR putenv('TZ=GMT'); -- Jon Kriek http://phpfreaks.com Php Webmaster [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm in London and and my timezone is GMT, so what should I

Re: [PHP] date() is hours behind

2003-09-30 Thread Curt Zirzow
* Thus wrote PHP Webmaster ([EMAIL PROTECTED]): Jon Kriek [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] putenv('TZ=Europe/London'); OR putenv('TZ=GMT'); -- Jon Kriek http://phpfreaks.com Php Webmaster [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]

[PHP] date() is hours behind

2003-09-29 Thread PHP Webmaster
Hi all, I currently use: date(l jS F Y, g:i A); To format the current date/time to my personal preference. However, at 12:19 AM on my machine, date(l jS F Y, g:i A); shows 4:19PM... 8 hours slow :( Any ideas on how to correct this? Am I right in saying that there is a timezone problem? Any

RE: [PHP] date() is hours behind

2003-09-29 Thread Vail, Warren
Sounds like your server is set to GMT, that is, if you are located in PDT timezone. Warren Vail -Original Message- From: PHP Webmaster [mailto:[EMAIL PROTECTED] Sent: Monday, September 29, 2003 4:23 PM To: [EMAIL PROTECTED] Subject: [PHP] date() is hours behind Hi all, I currently use

Re: [PHP] date() is hours behind

2003-09-29 Thread Jon Kriek
See the putenv() function. For example to get the correct Eastern Standard Time http://www.php.net/putenv ?php putenv('TZ=US/Eastern'); echo 'Last modified: ' . date('d/m/y H:i', getlastmod()); ? -- Jon Kriek http://phpfreaks.com Php Webmaster [EMAIL PROTECTED] wrote in message

Re: [PHP] date() is hours behind

2003-09-29 Thread Jon Kriek
Well I meant just putenv('TZ=US/Eastern'); But you get the idea. -- Jon Kriek http://phpfreaks.com Jon Kriek [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] See the putenv() function. For example to get the correct Eastern Standard Time http://www.php.net/putenv ?php