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
improvement: set activeTimezone when transforming dates #7142
improvement: set activeTimezone when transforming dates #7142
Conversation
If I'm reading this correctly the timezone can be set to something that is not in our condensed list of timezones even if the timezone falls into one of our timezone groups. Eg. for me If we're OK with that then there will need to be some changes to the client to deal with |
Interesting. |
I think #7143 needs to be changed to use
|
changed #7143 to allow all valid moment timezones |
05e4b26
to
dde8231
Compare
refs TryGhost/Ghost#7142, TryGhost/Ghost#7143 - moves timezone selection template and logic into a component - detect if the current `activeTimezone` is not in our pre-defined list of timezones, if it isn't: - add a line indicating that there has been a manual override with the current `activeTimezone` value - add a blank option to the timezone select list
refs TryGhost/Ghost#7142, TryGhost/Ghost#7143 - moves timezone selection template and logic into a component - detect if the current `activeTimezone` is not in our pre-defined list of timezones, if it isn't: - add a line indicating that there has been an override with the current `activeTimezone` value - add a blank option to the timezone select list
no issue - sets `settings.activeTimezone` to best-guess based on current server time when performing the timezones migration in order to prevent unexpected changes in timezone when upgrading
no issue - sets `settings.activeTimezone` to best-guess based on current server time when performing the timezones migration in order to prevent unexpected changes in timezone when upgrading
no issue
Set
activeTimezone
settings property, when running 006 migration.Right now: we only have a default active timezone (for the blog) configured - which is UTC timezone. But when your ghost server runs in a non UTC timezone, then your blog would be in UTC and all your
published_at
posts dates get shifted to UTC timezone. This can be very confusing.So we are setting the
activeTimezone
settings property to the server timezone (or to the one which is configured inconfig.js
), when running the migration.Only tested manual.