From 953e3093713388d4a59d6c6ec6fb9de19b6d2113 Mon Sep 17 00:00:00 2001 From: gsd Date: Tue, 4 Feb 2025 19:04:26 +0300 Subject: [PATCH] kamaz fix 3 --- src/main/java/app/services/db/PermitionService.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/app/services/db/PermitionService.java b/src/main/java/app/services/db/PermitionService.java index 3416c69..d143d00 100644 --- a/src/main/java/app/services/db/PermitionService.java +++ b/src/main/java/app/services/db/PermitionService.java @@ -11,6 +11,8 @@ import org.springframework.stereotype.Service; import java.sql.ResultSet; import java.sql.SQLException; +import java.sql.Timestamp; +import java.time.Instant; import java.util.List; @Service @@ -50,7 +52,7 @@ public class PermitionService { public int extendPermition(SteamID steamID, Integer amount, String status, Long previousTimestamp) { return jdbcTemplate.update("UPDATE sm_admins SET amount=amount+?, reg_date = ? WHERE identity LIKE ? AND status LIKE ?", - amount, previousTimestamp, steamID.steam2, status); + amount, Timestamp.from(Instant.ofEpochSecond(previousTimestamp)), steamID.steam2, status); } public int addFreeVIP(SteamID steamID, Integer amount) {