I have a request to display the creation time of a comment in UTC, as we have global teams receiving the notification emails. We have multiple projects in the instance and I am unable to change the server time, so I need to convert the date output to UTC
I have the base code:
Date: $!comment.created
Which Outputs like this:
Date: Mon Dec 18 11:40:12 EST 2017
I have tried various forms of what I could find to be DateTimeFormatter including something like:
$!comment.created.dateTimeFormatter.Zone("UTC")
This is not at all correct it seems, as this just outputs:
Date:
I have not been able to figure out the correct usage of this formatter and any help would be much appreciated