Updated code for call exipration

This commit is contained in:
rajesh
2025-04-01 18:09:01 +05:30
parent 0d7306cf78
commit 51eb7172d3
3 changed files with 24 additions and 42 deletions

View File

@@ -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());