I have a field, DEADLINE DAY CALCULATION, that I want to reflect TODAY if Task Due is today, TOMORROW if Task Due is tomorrow, DAY OF WEEK if Task Due is after Tomorrow, and PAST DUE if Task Due is before today. Because Airtable functions in GMT and our team is in Pacific Time, using 'days' would change at 5pm our time to reflect that TODAY is PAST DUE. I cannot fix this by toggling on Time Zones in the Task Due field because we do not use times for due dates, and this toggle only works if times are not hidden.
DATETIME_DIFF is killing me...
Problem formula: DATETIME_DIFF({Task Due}, TODAY(), 'hours')
Short Version:
It's currently 5pm Pacific. The Task Due is due tonight at 12:00am Pacific. DATETIME_DIFF reflects -24. Why is this hours calculation reflecting 24 hours instead of 7?
Long Version:
I have a field, DEADLINE DAY CALCULATION, that I want to reflect TODAY if Task Due is today, TOMORROW if Task Due is tomorrow, DAY OF WEEK if Task Due is after Tomorrow, and PAST DUE if Task Due is before today. Because Airtable functions in GMT and our team is in Pacific Time, using 'days' would change at 5pm our time to reflect that TODAY is PAST DUE. I cannot fix this by toggling on Time Zones in the Task Due field because we do not use times for due dates, and this toggle only works if times are not hidden.
Last week I built a formula to offset the GMT change by 8 hours:
IF({Deadline Day Calculation} <= "-17", "PAST DUE", IF({Deadline Day Calculation} >= "-17", IF({Deadline Day Calculation} < "7", "TODAY", IF({Deadline Day Calculation} >= "7", IF({Deadline Day Calculation} < "31", "TOMORROW", IF({Deadline Day Calculation} >= "31", UPPER({Day of Week}), ""))))))
It worked well for a week. Suddenly it's no longer working correctly because the DATETIME_DIFF formula is rounding up hours to the nearest day rather than reflecting actual hours as it did last week. I.e., reflecting 24 hours between 5pm and 12a instead of 7 hours.
I've tried using NOW() instead of TODAY() to no effect.
Please help. This is driving me nuts. Thank you!
Login to the community
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
