Our client just published one of the articles and it was not showing up. Took me a while to realize they selected the time which is two hours after the current UTC time.
Is it possible that selected time in published_at field is converted to the correct timezone of the app (in my case UTC)?
@MaTToX3 Do you have any thoughts on how this would work on sites where people are operating on multiple timezones?
@MaTToX3 the current behaviour already converts timezones. It converts it from the backend user to the application timezone by default unless ignoreTimezone: true is set on the field and column configs for that field. So, the user probably has a preference set for a timezone that is two hours off of UTC and selected the time they thought was correct in UTC but they were actually selecting their local time.
If you want everyone to be using the field as if it was just straight UTC, then you need to set ignoreTimezone: true on it.
@LukeTowers Thank you for your response! Indeed, everything works that way, just as you said it. The thing is, when you create a new user for backend, he/she gets assigned a UTC timezone, which means no conversion is made (since system of course assumes that this is already UTC time). So, when I switched my account to +2 time (for my location), the published_at field has indeed convert to UTC.
EDIT: It would be great, if super user could also edit this "Timezone" of other users, since our clients are a bit.. well some things are hard to explain to them. :) But I can do that directly in DB, so it will be ok.
Thanks again!
@MaTToX3 Probably would be easier to just set the App.timezone config variable to the +2 timezone if everyone is going to be using that. :)
@bennothommo noooooo please don't do that. app.timezone should always always be UTC. What you can change however is cms.backendTimezone, which is the default timezone that everyone in the backend will use unless they otherwise specify: https://github.com/octobercms/october/blob/master/config/cms.php#L83.
Take it from one who has dealt with far more date time related issues then they ever wanted to, leave your app.timezone in UTC.
@LukeTowers indeed you are correct. I forgot about that config variable.
@MaTToX3 please disregard me and use @LukeTowers' suggestion. He is a man of much wisdom.
Most helpful comment
@bennothommo noooooo please don't do that.
app.timezoneshould always always be UTC. What you can change however iscms.backendTimezone, which is the default timezone that everyone in the backend will use unless they otherwise specify: https://github.com/octobercms/october/blob/master/config/cms.php#L83.Take it from one who has dealt with far more date time related issues then they ever wanted to, leave your
app.timezonein UTC.