Skip to main content
4 events
when toggle format what by license comment
Sep 14, 2018 at 10:52 comment added Rajesh Kakkad PHP only options detects user timezone from IP address. It would require you to add IP to timezone database or use API of one of such services as mentioned on stackoverflow.com/questions/5203382/… (check Robin's answer). It is discouraging to see that people are giving minus for taking time to help somebody. My answer to you has been given -1 by somebody.
Sep 12, 2018 at 14:59 comment added Drewdavid Thanks @Rajesh. I haven't been able to find a way for the server to detect the user's timezone using PHP, so I was led to a hybrid solution. Could you point me to a resource that I can follow to learn about doing this with only PHP? Because currently my time is returned as GMT without taking the next steps using JS. Thanks!
Sep 12, 2018 at 6:17 history edited Rajesh Kakkad CC BY-SA 4.0
deleted 4 characters in body
Sep 12, 2018 at 6:11 history answered Rajesh Kakkad CC BY-SA 4.0