Fix localdate
This commit is contained in:
@@ -58,6 +58,11 @@ public class UtilityLocalDate {
|
|||||||
.toLocalDateTime();
|
.toLocalDateTime();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static LocalDateTime localDateTimeFromLocalDate(LocalDate dateToConvert) {
|
||||||
|
return dateToConvert
|
||||||
|
.atStartOfDay();
|
||||||
|
}
|
||||||
|
|
||||||
public static LocalDate timeToLocalDate(long time, @Nullable String timezone) {
|
public static LocalDate timeToLocalDate(long time, @Nullable String timezone) {
|
||||||
return Instant.ofEpochSecond(time)
|
return Instant.ofEpochSecond(time)
|
||||||
.atZone(timezone == null ? currentZone : ZoneId.of(timezone))
|
.atZone(timezone == null ? currentZone : ZoneId.of(timezone))
|
||||||
|
|||||||
@@ -602,7 +602,7 @@ public class SmartLogisticService {
|
|||||||
dataVers = sdf.format(collo.getDataVers());
|
dataVers = sdf.format(collo.getDataVers());
|
||||||
|
|
||||||
String keyCol = "<GESTIONE>" + collo.getGestione() + "</GESTIONE>" +
|
String keyCol = "<GESTIONE>" + collo.getGestione() + "</GESTIONE>" +
|
||||||
"<DATA_COLLO>" + CommonConstants.DATETIME_YMD_DASHED_FORMATTER.format(collo.getDataCollo()) + "</DATA_COLLO>" +
|
"<DATA_COLLO>" + CommonConstants.DATETIME_YMD_DASHED_FORMATTER.format(UtilityLocalDate.localDateTimeFromLocalDate(collo.getDataCollo())) + "</DATA_COLLO>" +
|
||||||
"<NUM_COLLO>" + collo.getNumCollo() + "</NUM_COLLO>" +
|
"<NUM_COLLO>" + collo.getNumCollo() + "</NUM_COLLO>" +
|
||||||
"<SER_COLLO>" + collo.getSerCollo() + "</SER_COLLO>" +
|
"<SER_COLLO>" + collo.getSerCollo() + "</SER_COLLO>" +
|
||||||
"<DATA_ORD>" + dataOrd + "</DATA_ORD>" +
|
"<DATA_ORD>" + dataOrd + "</DATA_ORD>" +
|
||||||
|
|||||||
Reference in New Issue
Block a user