in reply to how does localtime() get the time from the user's machine?
http://www.php.net/manual/en/ref.datetime.php Check time() and date() or gmdate().