added timezone for all create date
This commit is contained in:
@@ -2,6 +2,7 @@ package com.krylov.refound.entity.advertising;
|
||||
|
||||
import com.krylov.refound.enums.advertising.FullscreenAdStatus;
|
||||
import com.krylov.refound.enums.advertising.TranscodingStatus;
|
||||
import com.krylov.refound.util.TimeZoneContext;
|
||||
import jakarta.persistence.*;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
@@ -38,7 +39,7 @@ public class FullscreenAdvertising {
|
||||
@PrePersist
|
||||
protected void onCreate() {
|
||||
if (createdAt == null) {
|
||||
createdAt = LocalDateTime.now();
|
||||
createdAt = TimeZoneContext.now();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user