I have a Date column (contains a date and start time) and an Hours column (contains a decimal number of hours (i.e. 1.5 = 90 minutes).
A formula column (D/T Calc) concatenates that data into a string like, “Monday, December 1, 4:00 - 5:00 PM.” That formula works; here it is:
CONCATENATE(FORMAT_DATE({Date}, "dddd, MMMM D"), " from ", IF(MOD(HOUR({Date}) - 0, 12) = 0, 12, MOD(HOUR({Date}) - 0, 12)), ":", IF(MINUTE({Date}) < 10, CONCATENATE("0", MINUTE({Date})), MINUTE({Date})), IF(HOUR({Date}) >= 12, " PM", " AM"), " – ", IF(MOD(FLOOR(({Hours} * 60 + (HOUR({Date}) - 0) * 60 + MINUTE({Date})) / 60), 12) = 0, 12, MOD(FLOOR(({Hours} * 60 + (HOUR({Date}) - 0) * 60 + MINUTE({Date})) / 60), 12)), ":", IF(MOD(({Hours} * 60 + (HOUR({Date}) - 0) * 60 + MINUTE({Date})), 60) < 10, CONCATENATE("0", MOD(({Hours} * 60 + (HOUR({Date}) - 0) * 60 + MINUTE({Date})), 60)), MOD(({Hours} * 60 + (HOUR({Date}) - 0) * 60 + MINUTE({Date})), 60)), IF(MOD(({Hours} * 60 + (HOUR({Date}) - 0) * 60 + MINUTE({Date})), 1440) >= 720, " PM", " AM"), " ET.")
That all works fine. The resulting value is correct in the D/T Calc column.
But when I generate a template-based Monday Doc that includes that Dynamic Value, the time(s) are wrong. Instead of a 1:00 PM start time, I get 6:00 PM. The five-hour discrepancy suggests a UTC-to-EST time difference.
- Why on earth would time calculations be different in the Board and Doc?
- What can I do to make this work correctly (other than just manually correct for this madness)?