CLOUDSTACK-9840: Fix datetime format of snapshots events (#2008)

Include the timezone in datetime format of snapshot events, to be consistent
with every other events.
"eventDateTime" was added by @chipchilders in commit 14ee684ce3 and was
updated the same day to add the timezone (commit bf967eb622) except for
Snapshots.
This commit is contained in:
Olivier Lemasle 2017-08-03 00:31:49 +02:00 committed by Rohit Yadav
parent 1d95cbbfed
commit 43ae8e3503
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ public class SnapshotStateListener implements StateListener<State, Event, Snapsh
eventDescription.put("old-state", oldState.name());
eventDescription.put("new-state", newState.name());
String eventDate = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date());
String eventDate = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss Z").format(new Date());
eventDescription.put("eventDateTime", eventDate);
eventMsg.setDescription(eventDescription);