3
0
mirror of https://github.com/grafana/grafana.git synced 2025-02-25 18:55:37 -06:00

Fixed created & updated columns in dashboard table

This commit is contained in:
utkarshcmu 2015-11-20 03:10:24 -08:00
parent 93977316ce
commit 93f9a0c39c

View File

@ -73,9 +73,12 @@ func NewDashboardFromJson(data map[string]interface{}) *Dashboard {
if dash.Data["version"] != nil {
dash.Version = int(dash.Data["version"].(float64))
dash.Updated = time.Now()
}
} else {
dash.Data["version"] = 0
dash.Created = time.Now()
dash.Updated = time.Now()
}
return dash