Can I retrieve user local time with php?
Moderator: General Moderators
Can I retrieve user local time with php?
If yes then how?
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.
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.