@esfaenza/extensions 11.2.33 → 11.2.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/esfaenza-extensions.umd.js +6 -1
- package/bundles/esfaenza-extensions.umd.js.map +1 -1
- package/bundles/esfaenza-extensions.umd.min.js +1 -1
- package/bundles/esfaenza-extensions.umd.min.js.map +1 -1
- package/esm2015/lib/services/extensions.dates.service.js +7 -2
- package/fesm2015/esfaenza-extensions.js +6 -1
- package/fesm2015/esfaenza-extensions.js.map +1 -1
- package/package.json +1 -1
|
@@ -612,8 +612,13 @@
|
|
|
612
612
|
if (mydt == null)
|
|
613
613
|
return "FE: Not a Date";
|
|
614
614
|
var isZeroTime = mydt.startOf(timepart).valueOf() === mydt.valueOf();
|
|
615
|
-
if (!isZeroTime)
|
|
615
|
+
if (!isZeroTime) {
|
|
616
|
+
if (timepart == "day" && mydt.subtract(1, "hour").hour() == mydt.hour()) {
|
|
617
|
+
// Se l'ora precedente è lo stesso orario dell'ora attuale l'istante finale dev'essere mandato avanti di 1
|
|
618
|
+
mydt = mydt.add(1, "hour");
|
|
619
|
+
}
|
|
616
620
|
return printSeconds ? mydt.format(this.cfg.fulldateDisplay) : mydt.format(this.cfg.fulldateDisplayNoSS);
|
|
621
|
+
}
|
|
617
622
|
var tmpValue = mydt.subtract(1, timepart);
|
|
618
623
|
var value = "";
|
|
619
624
|
// Istante finale delle ore: 05/10/1992 --> 04/10/1992 24:00(:00)
|