Updated code for call exipration
This commit is contained in:
@@ -28,11 +28,6 @@ public class DateTimeUtil {
|
||||
LocalDateTime localDatetime = ldtZoned.withZoneSameInstant(ZoneId.of("Europe/Rome")).toLocalDateTime();
|
||||
return localDatetime;
|
||||
}
|
||||
|
||||
public static LocalDate LocalDateServerToEurope(LocalDate systemDate) {
|
||||
ZonedDateTime zonedDateTime = systemDate.atStartOfDay(ZoneId.systemDefault());
|
||||
return zonedDateTime.withZoneSameInstant(ZoneId.of("Europe/Rome")).toLocalDate();
|
||||
}
|
||||
|
||||
public static LocalTime LocalTimeServerToEurope(LocalTime systemTime) {
|
||||
ZonedDateTime zonedDateTime = systemTime.atDate(LocalDate.now()).atZone(ZoneId.systemDefault());
|
||||
|
||||
Reference in New Issue
Block a user