PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hi guys,
I need your help. I have a script which shows the time on my server, but does not realize the clients timezones. How can I greet my customers according to THEIR timezone?
You either need to keep a copy of the user's timezone in their profile (assuming that users register on your site), or you need to use a client-side technology such as javascript to read their timezone and pass it through to the server. In the latter case, you might find it easier to use javascript to display the greeting rather than PHP.