Not a customer? Click the 'Start a free trial' link to begin a 30-day SaaS trial of our product and to join our community.
Existing Cisco AppDynamics customers should click the 'Sign In' button to authenticate to access the community
07-05-2020 02:51 AM
Hi there
Does anyone have a way to manipulate the time in an alert template. It'showing the event time in UTC time, not in the customer's time
We have SaaS Controllers which are in Europe however the customer is in a different timezone, however from AppD Support it seems we cannot update the time in the Alert.
This obviously causes confusion when the customer sees the event time is out by a couple of hours
Surely there is a way to add/subtract hours in the template itself?
Any help is appreciated:)
Solved! Go to Solution.
07-06-2020 02:30 PM
For anybody else looking for this, please find working code below, we are GMT+2
You can change the code to fit your needs
#set ($date = ${latestEvent.eventTime})
#set ($newDate = ${date.getHours()}+(2))
$date.setHours(${newDate})
#set( $String = ' ' ) $String.format('%1$tY-%1$tm-%1$tdT%1$tH:%1$tM:%1$tSZ', ${date})
User | Count |
---|---|
4 | |
3 | |
3 | |
1 | |
1 | |
1 |
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form