# Time value in custom alarm message

**URL:** <https://forum.inductiveautomation.com/t/time-value-in-custom-alarm-message/18657>\
**Category:** Ignition\
**Created:** [June 28, 2018, 1:25pm UTC](https://forum.inductiveautomation.com/t/time-value-in-custom-alarm-message/18657 "2018-06-28T13:25:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bwagner](https://avatars.discourse-cdn.com/v4/letter/b/7feea3/32.png) [@bwagner](https://forum.inductiveautomation.com/u/bwagner)\
**Post date:** [June 28, 2018, 1:25pm UTC](https://forum.inductiveautomation.com/t/time-value-in-custom-alarm-message/18657/1 "2018-06-28T13:25:41Z")

</div>

I am trying to display the time in a custom alarm message, but it is the gateway time , so it is not adjusted for the timezone. I tried to add 3 hours using addHours to either a tag or the alarm properties timestamp. Tried both of the following.

"Time: " + addHours({[System]Gateway/CurrentDateTime}, 3) + “\n” +  
"Equipment: " + {name} + “\n” +  
"State: " + {Value} + “\n” +  
“Duration: " + {timeOnDelaySeconds}/60 + " minutes”

"Time: " + addHours({Timestamp}, 3) + “\n” +  
"Equipment: " + {name} + “\n” +  
"State: " + {Value} + “\n” +  
“Duration: " + {timeOnDelaySeconds}/60 + " minutes”
