
Timezones
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
I can do a quick one in the meantime um I'll just show you guys the time zone um menu at least um okay so we finally released uh time zone conversion to all clients um it's just going to show up as so Behavior stays the same as it was before but if users want to do conversion they can set the database time zone and the query time zone um on their connection um database time zone tells us what their database is set to so it should generally be UTC except sometimes specific for snowflake or who knows if someone has something weird going on um and then query time zone will default to do not convert but if you set that to something else then we'll
set the session time zone when we make a connection to the database to be equal to that value and then any um column that doesn't have a time zone associated with it will be explicitly converted uh from the database time zone to the query time zone so if you have like a date time and big query or like a time stamp ntz in Snowflake will do like an explicit convert and if you have a time zone aware one it should happen automatically based on the session time zone uh C good question will this change I I know that we had the thing where if you type in like in the past one day in filters it was I can't even describe what the behavior was
because I don't actually know what time zone we were using for that but how does that how does this stuff impact that um it should work based on whatever you set as your query time zone okay so in the past one day is always going to be using query time zone that's right it should I mean you can check but like the the point being that like the current time zone which is like a function in most of the dialects um that the value of that depends on whatever is in the session so before we had been setting it always to UTC so current times was always the current or current time was always the time in UTC and so the day was based off
of that but now the day should be based off of whatever is set as the query time zone okay perfect um oh and this will also if you said this and you have timestamp TZ fields in Snowflake um we'll start converting those to LTZ and showing those in in LTZ um oh and there's a field on the model so if there's a particular field that's like a time stamp no time zone um type that you don't want converted um you can add convert TZ false in the model definition to like abort not you know doing time zone conversion for that field um I think that's it uh we should have some docs up soon I have I wrote it up in GitHub but I should
go through the process of figuring out how to get that actually in the docs page oh uh Kathy if you send me the GitHub link I can convert it to oh perfect okay cool thank you thanks for writing it do we need to put in the UI anywhere uh the query time zone then yeah so um I'm going to look into this um at the very least we could probably put it in the inspector like it's it's going to be connection dependent not user dependent so right um it's not going to be so surprising for people but at the very least like if we could put it in the inspector and I'll just say like what the query and I'm saying more like we have
had some like requests I know like just to show like on the dashboard like when did when did we execute the dashboard and stuff like that and having that probably needs to say like it relative probably to win the I I don't know like I actually just need to think about that some more but we probably we have some requests for like putting the time stamps on stuff um