Are you reading or writing date/time fields? I
Date/time fields are always stored in GTM, thus in a script, the date/time is always in GMT. You can get the timezone from the field options.
If the script is using getCellValueAsString()
, the result will be in the timezone for the field.
If the script is using getCellValue()
, the result will be in GMT.
If the script is writing the cell value and you have a JavaScript date object, continue to use .toISOString()
to generate the ISO 8601 string. Or if you use another string that is ambiguous, Airtable will try to interpret the string. Your results might vary depending on whether or not you have the timezone settings enabled.
This community post is about the beta related timezones and has good info about the upcoming change.