My hosting company is on west coast. Users are on east coast. How do I change the time stamp on posts in my PHP bullentin board (much like this one) to reflect east coast time, instead of west coast?
Here's what I have in the time format:
M j, Y, g:i a
I'm new to PHP, so a simple solution would be appreciated. Thanks!
time stamp to reflect user's time?
Moderator: General Moderators
- hob_goblin
- Forum Regular
- Posts: 978
- Joined: Sun Apr 28, 2002 9:53 pm
- Contact:
http://www.php.net/manual/en/ref.datetime.php
use one of those functions, and just add xxxx seconds to it...(or subtract)
use one of those functions, and just add xxxx seconds to it...(or subtract)
how bout this?
i added this, and it seems to work.
putenv("TZ=America/New_York");
what do you think?
putenv("TZ=America/New_York");
what do you think?
Re: how bout this?
even better, i'll usemobb wrote:i added this, and it seems to work.
putenv("TZ=America/New_York");
what do you think?
putenv("TZ=EST5EDT");