cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chipchild...@apache.org
Subject [4/4] git commit: updated refs/heads/master to bf967eb
Date Tue, 03 Sep 2013 17:38:39 GMT
Updating datetime format of events to include the timezone


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/bf967eb6
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/bf967eb6
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/bf967eb6

Branch: refs/heads/master
Commit: bf967eb622f26195819b9b150db153f1049d65d0
Parents: ee13e19
Author: Chip Childers <chipchilders@apache.org>
Authored: Tue Sep 3 12:45:01 2013 -0400
Committer: Chip Childers <chipchilders@apache.org>
Committed: Tue Sep 3 12:45:01 2013 -0400

----------------------------------------------------------------------
 server/src/com/cloud/event/ActionEventUtils.java               | 2 +-
 server/src/com/cloud/event/AlertGenerator.java                 | 2 +-
 server/src/com/cloud/event/UsageEventUtils.java                | 2 +-
 server/src/com/cloud/network/NetworkStateListener.java         | 2 +-
 server/src/com/cloud/storage/listener/VolumeStateListener.java | 2 +-
 server/src/com/cloud/vm/UserVmStateListener.java               | 2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/bf967eb6/server/src/com/cloud/event/ActionEventUtils.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/event/ActionEventUtils.java b/server/src/com/cloud/event/ActionEventUtils.java
index 1cdcf1c..60f5633 100755
--- a/server/src/com/cloud/event/ActionEventUtils.java
+++ b/server/src/com/cloud/event/ActionEventUtils.java
@@ -193,7 +193,7 @@ public class ActionEventUtils {
         eventDescription.put("entityuuid", entityUuid);
         eventDescription.put("description", description);
 
-        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);
 
         event.setDescription(eventDescription);

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/bf967eb6/server/src/com/cloud/event/AlertGenerator.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/event/AlertGenerator.java b/server/src/com/cloud/event/AlertGenerator.java
index 6e670de..d896e53 100644
--- a/server/src/com/cloud/event/AlertGenerator.java
+++ b/server/src/com/cloud/event/AlertGenerator.java
@@ -88,7 +88,7 @@ public class AlertGenerator {
         eventDescription.put("subject", subject);
         eventDescription.put("body", body);
 
-        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);
 
         event.setDescription(eventDescription);

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/bf967eb6/server/src/com/cloud/event/UsageEventUtils.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/event/UsageEventUtils.java b/server/src/com/cloud/event/UsageEventUtils.java
index 4ac433d..b1301a8 100644
--- a/server/src/com/cloud/event/UsageEventUtils.java
+++ b/server/src/com/cloud/event/UsageEventUtils.java
@@ -151,7 +151,7 @@ public class UsageEventUtils {
         eventDescription.put("resource", resourceType);
         eventDescription.put("id", resourceUUID);
 
-        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);
 
         event.setDescription(eventDescription);

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/bf967eb6/server/src/com/cloud/network/NetworkStateListener.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/network/NetworkStateListener.java b/server/src/com/cloud/network/NetworkStateListener.java
index 674c5e5..520244c 100644
--- a/server/src/com/cloud/network/NetworkStateListener.java
+++ b/server/src/com/cloud/network/NetworkStateListener.java
@@ -83,7 +83,7 @@ public class NetworkStateListener implements StateListener<State, Event,
Network
         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);

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/bf967eb6/server/src/com/cloud/storage/listener/VolumeStateListener.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/storage/listener/VolumeStateListener.java b/server/src/com/cloud/storage/listener/VolumeStateListener.java
index 9940aae..c8b9f4d 100644
--- a/server/src/com/cloud/storage/listener/VolumeStateListener.java
+++ b/server/src/com/cloud/storage/listener/VolumeStateListener.java
@@ -77,7 +77,7 @@ public class VolumeStateListener implements StateListener<State, Event,
Volume>
         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);

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/bf967eb6/server/src/com/cloud/vm/UserVmStateListener.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/vm/UserVmStateListener.java b/server/src/com/cloud/vm/UserVmStateListener.java
index c61f1ed..6c0c5e9 100644
--- a/server/src/com/cloud/vm/UserVmStateListener.java
+++ b/server/src/com/cloud/vm/UserVmStateListener.java
@@ -119,7 +119,7 @@ public class UserVmStateListener implements StateListener<State, VirtualMachine.
         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);


Mime
View raw message