added timezone for all create date
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.krylov.refound.entity;
|
||||
|
||||
import com.krylov.refound.util.TimeZoneContext;
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.GeneratedValue;
|
||||
@@ -38,6 +39,6 @@ public class Message {
|
||||
|
||||
@PrePersist
|
||||
protected void onCreate() {
|
||||
createdAt = LocalDateTime.now();
|
||||
createdAt = TimeZoneContext.now();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user