From 93f9a0c39cf0fe3713c375bcfece848706794a5c Mon Sep 17 00:00:00 2001 From: utkarshcmu Date: Fri, 20 Nov 2015 03:10:24 -0800 Subject: [PATCH] Fixed created & updated columns in dashboard table --- pkg/models/dashboards.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/models/dashboards.go b/pkg/models/dashboards.go index 7d4a2690556..a07d6d1ee88 100644 --- a/pkg/models/dashboards.go +++ b/pkg/models/dashboards.go @@ -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