From d8cc85c42f8de813f55217a24176afd22e01492e Mon Sep 17 00:00:00 2001 From: abhishek Date: Thu, 12 Aug 2010 15:52:34 -0700 Subject: [PATCH] Fixing the listAlerts api call to return the correct format for the sent on field --- server/src/com/cloud/api/commands/ListAlertsCmd.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/com/cloud/api/commands/ListAlertsCmd.java b/server/src/com/cloud/api/commands/ListAlertsCmd.java index fb72fa06012..cf95167b0d7 100644 --- a/server/src/com/cloud/api/commands/ListAlertsCmd.java +++ b/server/src/com/cloud/api/commands/ListAlertsCmd.java @@ -91,7 +91,7 @@ public class ListAlertsCmd extends BaseCmd{ List> alertData = new ArrayList>(); alertData.add(new Pair(BaseCmd.Properties.TYPE.getName(), alert.getType())); alertData.add(new Pair(BaseCmd.Properties.DESCRIPTION.getName(), alert.getSubject())); - alertData.add(new Pair(BaseCmd.Properties.SENT.getName(), alert.getLastSent())); + alertData.add(new Pair(BaseCmd.Properties.SENT.getName(), getDateString(alert.getLastSent()))); aTag[i++] = alertData; }