[issue - 46] add default, current time for place when it creates
@@ -2,7 +2,9 @@ package greencity.entity;
import com.fasterxml.jackson.annotation.JsonManagedReference;
import com.fasterxml.jackson.annotation.JsonManagedReference;
+import greencity.constant.AppConstant;
import greencity.entity.enums.PlaceStatus;
+import greencity.util.DateTimeService;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.*;
@@ -68,7 +70,7 @@ public class Place {
@ManyToOne private User author;
@Column(name = "modified_date")
- private LocalDateTime modifiedDate = LocalDateTime.now();
+ private LocalDateTime modifiedDate = DateTimeService.getDateTime(AppConstant.UKRAINE_TIMEZONE);
@Enumerated(value = EnumType.ORDINAL)
@Column(name = "status")
