Fixing the listAlerts api call to return the correct format for the sent on field

This commit is contained in:
abhishek 2010-08-12 15:52:34 -07:00
parent 87b16702fe
commit d8cc85c42f

View File

@ -91,7 +91,7 @@ public class ListAlertsCmd extends BaseCmd{
List<Pair<String, Object>> alertData = new ArrayList<Pair<String, Object>>();
alertData.add(new Pair<String, Object>(BaseCmd.Properties.TYPE.getName(), alert.getType()));
alertData.add(new Pair<String, Object>(BaseCmd.Properties.DESCRIPTION.getName(), alert.getSubject()));
alertData.add(new Pair<String, Object>(BaseCmd.Properties.SENT.getName(), alert.getLastSent()));
alertData.add(new Pair<String, Object>(BaseCmd.Properties.SENT.getName(), getDateString(alert.getLastSent())));
aTag[i++] = alertData;
}