Updated code for call exipration

This commit is contained in:
rajesh
2025-04-01 18:09:01 +05:30
parent 586f872b34
commit c4626a834b
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());