Fixing timezones with Google sheets (not glide tables)

Helle Glide Community,

I am sorry if it is duplicate but I am trying to solve the timezone for different users in different locations. I’ve seen solutions and mainly this, but as far as I think this was before introducing the column format date.

since the checkbox “respect timezones” doesn’t support google sheets and glide doesn’t save the datetime in UTC+0 in google sheets, I came with a walkaround but I would like to ask if it is correct.

my steps are

  1. Add a format date column with Z
  2. A helper math column that will subtract/add the offset from the format date column (this will be used at submission and will be based on users browsers timezone) with the “X + (Y/24*-1)”
  3. On submission I will override the value of date column to the value of the helper math column, this will save real UTC+0 value to google sheets
  4. Finally a display column that will use the same format date column to add again the offset (will be used at display) with “X + (Y/24)”

Is there an easier way? and can something go wrong with this setup?
@Jeff_Hager

I would (and still do) use the solution that you linked to. It has proven over time to be the most robust and reliable solution.

Regarding your own workaround, as soon as I saw that you are using the Format Date column, I stopped reading. That column has also proven itself over time to give inconsistent and unreliable results.

can you please link me to some cases because I am using it alot in my app and didnt have any problem. but would be horrible if it doesnt work well as I am almost using it in all tables I have

That’s the problem with it. It works perfectly fine probably 99.99% of the time, and lulls you into a false sense of security. But when you get bitten by that 0.01%, it hurts (and makes your head explode).

Below is a bit of a rant I had about it last year.

3 Likes

To add to Darren’s point, I don’t have specific examples to show here, but once in a while I have problems with it on iOS Safari, so I don’t use it as much nowadays.

2 Likes

With my solution I am only extracting the local offset and not actually doing date formatting. I will go with it and see what will happen😅

Yeah, but test it on Safari. Glide has some problems regarding date/time with Safari (it’s the browser’s problem, not Glide).

You can try accessing the builder environment using Safari, you can see if it shows a problem right in there.