You can't figure it out. PHP's time function is got from the server, not a browser, therefore the time(); function matches what the server's time is.
If you don't want to use timestamps, use gmtime(); which gives the correct GMT time (instead of the server's default time)
.
Edit: You could use javascript, although it can be difficult and it does contain a small amount of limitations.