I'm sending a notification from a workflow that includes the date of the last comment. When I construct the message, I'm doing something like this:
var foo = comments.last.created.format(#YYYY-MM-dd H:m:s Z);
It works just fine, but the date that's produced is in GMT, not the time zone I have set in the YouTrack settings (Administration > Settings > Visual > Default timezone). Is there a way to get the format() method to honor the zone specified in the settings, or to otherwise get it to use the local time zone?