New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
URL Date Bug #7655
Comments
Hey @benheb Sorry to hear you are having trouble. I would like to ask you to confirm what i understood from your issue: You published your post on day 1 and the path was |
@kirrg001 correct. I made no changes to the timezone or the post between day 1 and 2. When I checked the settings on the post on day two, the date was still correct (see screenshot), but the url had changed from 30 to 31. I then changed the publish time to 15:00 (instead of 19:00), saved the post, and the url was correct. The URL date change seemed to happen auto-magically overnight. I've seen this happen several times recently, dating back a release or two. |
Ok thanks will look into this closer |
Thanks @kirrg001! I'll also maybe try setting the time earlier in the day with the next post I publish and see if I still see it? Haven't paid close enough attention, but seems to have only happened with posts I publish later in the evening on Sundays. /shrug |
@benheb Could you swing by our slack channel and write me a direct message? |
We found the reason for this issue. Thanks for your help @benheb . |
@benheb one last question. Did you ever change your timezone via Ghost-Admin (except of today)? Because i remember that we are setting the timezone automatically to your server timezone. |
@kirrg001 Good question. I'm not sure, but good chance I never did. I suspect I went and looked and saw that Mountain was selected so never touched it / saved it when I first set things up. What I did today was 1. Selected the drop down and re-clicked on Mountain, then 2. clicked saved in upper right, and all was good again. |
@benheb Thanks! I am still not able to reproduce. The settings and config cache get's updated for me. So it's unknown why your config value was not updated after updating to a newer Ghost version. I assume the value of the timezone config was still As we found an easy workaround for you and i am not able to reproduce this, I would like to close this issue for now. If more people report a similar issue, i will investigate furthermore. Thanks for your fast support. |
Thank you @kirrg001 |
@kirrg001 just FYI, I am able to reproduce these days. Basically every time I restart the ghost server this happens.
Maybe just me, but happens reliably. |
Anyone else see this? @kirrg001 Can we reopen and address? |
@benheb Hey! Sorry for late response. I will re-open the issue If somebody is interested in reproducing and fixing this issue, this would be very welcome! |
Note: #7858 also has a case of this, along with data for reproduction. |
I was able to reproduce - fix is coming |
closes TryGhost#7655 - caused by a wrong config usage - whenever you call config.set({key: value}) the timezone was overridden to the default Etc/UTC
Awesommeeee!! |
closed via #7960 - will be released in |
There seems to be a bug with dates and date urls. A bit funky to explain, but here's an attempt.
Yesterday I published a blog post at 7pm MDT. The url at that point looked like: /2016/10/30/winter-2016-2017-reason-for-concern/, as expected.
Today I went to the blog post and it had changed to /2016/10/31/winter-2016-2017-reason-for-concern/. You'll note it's October 31 now, instead of October 30, as expected.
I checked the timezone for our ghost setup and it's set to Mountain Time, as expected. When I go back to the published post in the admin content, the settings show the correct date/time:
It seems to only happen with posts that are published late in the day? Maybe some weird UTC conversion somewhere? Changing the time and re-saving typically will correct the url.
Not really sure where to look. I'm running version 0.11.2.
The text was updated successfully, but these errors were encountered: