I have a dropdown box on a webpage that takes a timezone identifier as the value (however I can change it to save the GMT offset if that is a better choice). Currently a use
The easiest approach would be to use DateTime with:
$t = new DateTime(); $t->setTimestamp( $time=time() ); $t->setTimeZone(new DateTimeZone("America/Denver")); print $t->format(DateTime::RFC850);
The timezone can be changed at will to cause the format function to recalculate the local time.