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 all, I am using php with smarty and I display the server time using $smarty.now.
My question is: is it somewhat possible to get the time of the client instead of getting the server's one? I searched the universe but found no reply!
Thanks in advance
you'll need Javascript to tell you what time their machine thinks it is, or allow them to set what time they use. The first does not involve PHP almost at all, while the second requires adjusting the server's time to their time-offsets.