Page 1 of 1
Can I retrieve user local time with php?
Posted: Thu Apr 10, 2003 6:41 am
by wilkas
If yes then how?
Posted: Thu Apr 10, 2003 8:43 am
by Rob the R
Since PHP is executed on the server, it can't directly return the local time zone of the user. You'd have to use some Javascript in combination with PHP to do what you want. I found a reference to such a technique at this website:
http://martin.f2o.org/php/localtime
but I have not tried it myself, so I can't make any claims to its usefulness or correctness.