added timezone for all create date

This commit is contained in:
SlimusMinus
2026-10-11 23:26:11 +03:00
parent 68d53fadf3
commit 4119b767c3
15 changed files with 156 additions and 20 deletions

View File

@@ -1,6 +1,7 @@
package com.krylov.refound.entity;
import com.krylov.refound.enums.Role;
import com.krylov.refound.util.TimeZoneContext;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.EnumType;
@@ -36,6 +37,6 @@ public class User {
@PrePersist
public void prePersist() {
this.createdAt = LocalDateTime.now();
this.createdAt = TimeZoneContext.now();
}
}