![]() | Join Date: Jun 2007 | Posts: 2,630 | Location: New York City | iTrader: (0) |
problem getting correct NYC time to display on forumhome
Some time ago I wanted to have the current time in New York City displayed on the forumhome of one of my sites, and made a teeny-tiny little script to get the time from the server and change it to New York City time:
Problem is, the server time seems to keep changing. I've tried adjusting the script and it works for a while and then eventually starts giving some crazy time. Are there any independent Internet timekeeping services I can access?
(I already have the default forum time set to EST, but don't want to just use that because it would look pretty stupid if a user changed their time zone.)
Code:
$timeplus1 = mktime(date("g")+1,date("i"),0,0,0,0);
$NYtime = date("g:ia", $timeplus1); (I already have the default forum time set to EST, but don't want to just use that because it would look pretty stupid if a user changed their time zone.)





Linear Mode

