• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1069
  • Last Modified:

PHP Time locale for winter/summer time

If I am armed with the UTC and the JavaScript offset time offset, is there a PHP lib that will calculate local time, taking into account all the vagaries of winter and summer time?
0
metalaureate
Asked:
metalaureate
  • 3
1 Solution
 
jet-blackCommented:
or you can use putenv() like:

<?php
  putenv ('TZ=Europe/Amsterdam');
  mktime(0,0,0,1,1,1970)
  echo date("H:i:s");
 ?>
0
 
jet-blackCommented:
here is the list of supported timezones:
http://www.php.net/manual/en/timezones.php
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now