in reply to how does localtime() get the time from the user's machine?

Actually, while PHP does have its failings, date/time functionality is not one of the weak points.

http://www.php.net/manual/en/ref.datetime.php
Check time() and date() or gmdate().

  • Comment on Re: how does localtime() get the time from the user's machine?