Server timezone causing post dates to be incorrect

Last night, I published something on my Ghost-powered blog, and I noticed the published time was 14 hours off. (My timezone is America/Los_Angeles, which is UTC-7:00/8:00.) I knew it had something to do with the timezone, but I couldn’t tell what was wrong. I first thought it had to do with my MySQL timezone, and so I manually set that to UTC, which then made the publish times only 7 hours off. I then realized that perhaps the date that Ghost was using to calculate the local time was not UTC, rather it was my local time (the server’s time zone), and it was converting the already local time to “local time.” So, I then tried setting my server timezone to UTC, which fixed the problem.

It would be nice if this was mentioned in the docs.

@juniorRubyist are you on Ghost 3.19.0? If so that release has a timezone bug that matches exactly what you describe and I suggest upgrading :slight_smile:

1 Like

Ahhhh. That explains things. :joy: I’ll go ahead and do that. Thanks!

This is also a duplicate of:

Any further discussion needed can go on the original.