From 34e5675acd48573e2bf1ce589d7e8e96d5dc6968 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Thu, 8 Aug 2019 10:45:38 +0800 Subject: [PATCH] fix lint --- modules/util/time_stamp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/util/time_stamp.go b/modules/util/time_stamp.go index d37da5cfa9d0b..e2c7439ef524a 100644 --- a/modules/util/time_stamp.go +++ b/modules/util/time_stamp.go @@ -49,7 +49,7 @@ func (ts TimeStamp) AsTimePtr() *time.Time { return ts.AsTimePtrInLocation(setting.UILocation) } -// AsTimePtr convert timestamp as *time.Time in Local locale +// AsTimePtrInLocation convert timestamp as *time.Time in customize location func (ts TimeStamp) AsTimePtrInLocation(loc *time.Location) *time.Time { tm := time.Unix(int64(ts), 0).In(loc) return &tm