First of all I'm not sure that foreign users running your script
will get different values of time. The script is running on your
machine and must operate with your time settings.
Yep, you need to look through the descriptions of gmtime/localtime
functions. But, by all means you can easely use a system date
function (i.e. $mydate=`date`;) pay attention to backticks.
-- With best regards Maqs.