Calculate User GMT Offset

PHOTO EMBED

Sun Apr 13 2025 22:59:22 GMT+0000 (Coordinated Universal Time)

Saved by @dannygelf #salesforce #screnflow #formula

//f_GMTOffset
24 * (DATETIMEVALUE({!$Flow.CurrentDate}) - {!Convert_Today_To_DateTime.datetimeValue})

//Convert_Today_To_DateTime is an UnofficialSF Action - ConvertDateToDatetimeFlowAction

{!dateTimeVariable} + ({!f_GMTOffset}/24)

content_copyCOPY

Salesforce DateTime fields are stored in GMT. With using an unofficialSF to calculate the GMT offset, date time fields can be displayed in user time zone when displaying them as text is needed