I have created a formula to alert me to a birthday anniversary as well as upcoming anniversary (within 7 days), however I’ve noticed the date is GMT despite setting DATETIME_FORMAT as Los Angeles in the formula. At 17:00, the results change as it becomes 00:00 in GMT. This is causing a little confusion.
The date field the formula is pulling from doesn’t seem to be listed as GMT, so I don’t know why this might be happening. Have I done something wrong?
IF(
IS_SAME(
DATETIME_FORMAT(
SET_TIMEZONE(
DATEADD(
Birthday,
DATETIME_DIFF(
TODAY(),
Birthday,
‘years’
) + 1,
‘year’
),
‘America/Los_Angeles’
),
‘L’
),
TODAY()
),
“Anniversary”,
IF(
DATETIME_DIFF(
DATETIME_FORMAT(
SET_TIMEZONE(
DATEADD(
Birthday,
DATETIME_DIFF(
TODAY(),
Birthday,
‘years’
) + 1,
‘year’
),
‘America/Los_Angeles’
),
‘L’
),
TODAY(),
‘days’
) < 8,
“Almost Anniversary”
)
)
Thank you!