Skip to content

Commit 6d99a18

Browse files
committed
Incorrect pinfo timestamp
1 parent 044566d commit 6d99a18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/pinfo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ func handlePinfoImpl(r *http.Request) (*database.User, int, error) {
9696
}
9797

9898
if ret.BanExpires != nil {
99-
fixedExpires := ret.BanIssued.Add(time.Duration(-offset) * time.Second).Local()
99+
fixedExpires := ret.BanExpires.Add(time.Duration(-offset) * time.Second).Local()
100100
ret.BanExpires = &fixedExpires
101101
}
102102

0 commit comments

Comments
 (0)