This question already has an answer here:
I've been using Stack Overflow for a while and I noticed that for me, the time is 7 hours ahead of my actual time. I live in Calgary AB, Canada so I might get something different, but the next day is shown at 5:00pm for me. I was wondering if there could be a PHP function that instead of using the
date_default_timezone_set function (I'm not completely sure you use this but it's evident you do), you could use some form of the
timezone_offset_get function. This of course, does not have to apply for everyone, but can apply to some people.