mirror of
https://github.com/grafana/grafana.git
synced 2025-09-28 01:54:01 +08:00
Fixed created & updated columns in dashboard table
This commit is contained in:
@ -73,9 +73,12 @@ func NewDashboardFromJson(data map[string]interface{}) *Dashboard {
|
|||||||
|
|
||||||
if dash.Data["version"] != nil {
|
if dash.Data["version"] != nil {
|
||||||
dash.Version = int(dash.Data["version"].(float64))
|
dash.Version = int(dash.Data["version"].(float64))
|
||||||
|
dash.Updated = time.Now()
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
dash.Data["version"] = 0
|
dash.Data["version"] = 0
|
||||||
|
dash.Created = time.Now()
|
||||||
|
dash.Updated = time.Now()
|
||||||
}
|
}
|
||||||
|
|
||||||
return dash
|
return dash
|
||||||
|
Reference in New Issue
Block a user