|
@@ -104,7 +104,7 @@ class AlertListPanel extends PanelCtrl {
|
|
|
this.backendSrv.get(`/api/annotations`, params)
|
|
this.backendSrv.get(`/api/annotations`, params)
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
this.alertHistory = _.map(res, al => {
|
|
this.alertHistory = _.map(res, al => {
|
|
|
- al.time = moment(al.time).format('MMM D, YYYY HH:mm:ss');
|
|
|
|
|
|
|
+ al.time = this.dashboard.formatDate(al.time, 'MMM D, YYYY HH:mm:ss');
|
|
|
al.stateModel = alertDef.getStateDisplayModel(al.newState);
|
|
al.stateModel = alertDef.getStateDisplayModel(al.newState);
|
|
|
al.info = alertDef.getAlertAnnotationInfo(al);
|
|
al.info = alertDef.getAlertAnnotationInfo(al);
|
|
|
return al;
|
|
return al;
|