Hi guys, I am building an application in PHP and I have got to the stage at which I need to know how to find out the user’s timezone. I’d like to know if there is a way of using the date() function to retrieve it. If there isn’t a way of doing it then I will just ask the user to input their timezone.
There is a way to find the users timezone but that would require you to have an IP to location table. Map the IP address which is obtained from the
variable to a location and then to a timezone. This method cannot be accurate but atleast can help users in selecting their timezones. The better method is to do using js and calculate the client offset and return it to our server.