We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d300f8 commit 34e5675Copy full SHA for 34e5675
modules/util/time_stamp.go
@@ -49,7 +49,7 @@ func (ts TimeStamp) AsTimePtr() *time.Time {
49
return ts.AsTimePtrInLocation(setting.UILocation)
50
}
51
52
-// AsTimePtr convert timestamp as *time.Time in Local locale
+// AsTimePtrInLocation convert timestamp as *time.Time in customize location
53
func (ts TimeStamp) AsTimePtrInLocation(loc *time.Location) *time.Time {
54
tm := time.Unix(int64(ts), 0).In(loc)
55
return &tm
0 commit comments