summaryrefslogtreecommitdiffstats
path: root/modules/timeutil/timestamp.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/timeutil/timestamp.go')
-rw-r--r--modules/timeutil/timestamp.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/timeutil/timestamp.go b/modules/timeutil/timestamp.go
index 1fe8d4fcb1..88008d1fad 100644
--- a/modules/timeutil/timestamp.go
+++ b/modules/timeutil/timestamp.go
@@ -57,7 +57,7 @@ func (ts TimeStamp) AsTime() (tm time.Time) {
// AsTimeInLocation convert timestamp as time.Time in Local locale
func (ts TimeStamp) AsTimeInLocation(loc *time.Location) (tm time.Time) {
tm = time.Unix(int64(ts), 0).In(loc)
- return
+ return tm
}
// AsTimePtr convert timestamp as *time.Time in Local locale