mirror of https://github.com/apache/cloudstack.git
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 commit14ee684ce3and was updated the same day to add the timezone (commitbf967eb622) except for Snapshots.
This commit is contained in:
parent
1d95cbbfed
commit
43ae8e3503
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue