Hello,
We have a UI only fromula field that is attempting to display a date one day prior to a given date:
YEAR({{Week_End__c}} - (1000246060))+‘-’+
IF(LEN(MONTH({{Week_End__c}} - (1000246060)))=2,MONTH({{Week_End__c}} - (1000246060)),‘0’+MONTH({{Week_End__c}} - (1000246060)))+‘-’+
IF(LEN(DAY({{Week_End__c}} - (1000246060)))=2,DAY({{Week_End__c}} - (1000246060)),‘0’+DAY({{Week_End__c}} - (10002460*60)))
So when the Week_End__c is 5/11/2018, it should display 5/10/2018. This works as intended when the user’s computer is set to the EST. However, for every other US time zone it calculates for 2 previous days, so it’s showing as 5/9/2018. We have a field like this for the 6 prior days from Week_End__c, so there is an off by 1 error for all of them.
Our org default is EST, so I’m assuming the discrepancy there is the problem. I’ve been playing around with those modifying values but nothing seems to be working that doesn’t throw the dates off for the other timezones as well.
Question
Timezone issue when calculating dates
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.