Hi Team,
Soooo, because Airtable doesn’t have a stand alone time field (it really needs one)
I need to create a ridiculous bodge…
I start with a Date field set to local format lets call it {CommDate}
Next I have a bulk standard number field set to integer we’ll call that {Day}
The third field uses DATEADD to add {Day} to {CommDate} easy enough, we’ll call that field {StartDate} it’s set in local format with “use same time zone” unchecked cos I’m in Australia.
Field 4 is a text field with a time of the day written in it in HH:mm format, lets call that field {Time}
Now here’s where it gets tricky…
I CONCATENATE {StartDate} & {Time} it spits out an answer which looks like YYYY-MM-DDT00:00:00.000ZHH:mm
The YYYY-MM-DD matches what’s in {StartDate} and the HH:mm matches the text in {Time} and I can only assume the T00:00:00.000Z is a representation of the UTC/GMT timezone.
Let’s call this field {Date&Time}
But here’s where the problem comes in…
My next field is a DATETIME_PARSE of {Date&Time} with ‘en-au’ as the locale. Once again I’ve got the settings as local format, 24hours and with the “use same time zone” unchecked.
But the formula has naturally assumed that the {Date&Time} field is UTC/GMT and the result the formula spits out is a date and time field but the time is now +10hrs (which is correct for the timezone ‘Australia/Melbourne’) from the text in the {Time} field.
We’ll call this last field {DateTime_Parse} obviously
Of course this makes some degree of sense, and I can easily fix it by checking the “use same time zone” box in all the Date & Time fields and my grid view looks perfect…
Except I don’t just use the grid view.
I have a calendar view and that calendar view is synced to my Google Calendar and of course all my records in my Google Calendar are now in UTC/GMT time which would be fine if I was living in Greenwich but I’m not I’m in Melbourne +10 hours away and +11hrs from October through to March every year and all my records (which are scheduled events) are 10 hours later than they should be.
An event starting at 10am is in my Google Calendar at 8pm etc etc.
I’ve tried inserting the SET_TIMEZONE formula in all the various formulas I have running but it doesn’t make a lick of difference.
The {Time} field is deliberately set as a text field to make it convenient to edit
I often need to quickly make a change to the date of multiple records without changing the time hence why I keep the date and time separate at the start and use the CONCATENATE formula to bring them together.
Can anyone help with my problem?
How can I make Airtable recognise that the text in my {Time} field is the ‘Australia/Melbourne’ timezone when it runs it through the DATETIME_PARSE formula?
Cheers,
Charlie