You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bh...@apache.org on 2017/08/02 22:31:52 UTC

[cloudstack] branch master updated: CLOUDSTACK-9840: Fix datetime format of snapshots events (#2008)

This is an automated email from the ASF dual-hosted git repository.

bhaisaab pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/master by this push:
     new 43ae8e3  CLOUDSTACK-9840: Fix datetime format of snapshots events (#2008)
43ae8e3 is described below

commit 43ae8e3503bc746f412e34e3fe6488e00def4ed0
Author: Olivier Lemasle <o....@gmail.com>
AuthorDate: Thu Aug 3 00:31:49 2017 +0200

    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 bf967eb622f) except for
    Snapshots.
---
 server/src/com/cloud/storage/listener/SnapshotStateListener.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/src/com/cloud/storage/listener/SnapshotStateListener.java b/server/src/com/cloud/storage/listener/SnapshotStateListener.java
index f4decf6..344f81c 100644
--- a/server/src/com/cloud/storage/listener/SnapshotStateListener.java
+++ b/server/src/com/cloud/storage/listener/SnapshotStateListener.java
@@ -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);

-- 
To stop receiving notification emails like this one, please contact
['"commits@cloudstack.apache.org" <co...@cloudstack.apache.org>'].