Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny committed Aug 8, 2019
1 parent 1d300f8 commit 34e5675
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/util/time_stamp.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 34e5675

Please sign in to comment.