@osovitny/anatoly 2.0.41 → 2.0.42
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/osovitny-anatoly.umd.js +2 -2
- package/bundles/osovitny-anatoly.umd.js.map +1 -1
- package/bundles/osovitny-anatoly.umd.min.js +1 -1
- package/bundles/osovitny-anatoly.umd.min.js.map +1 -1
- package/esm2015/lib/core/localization/localization.service.js +3 -3
- package/fesm2015/osovitny-anatoly.js +2 -2
- package/fesm2015/osovitny-anatoly.js.map +1 -1
- package/package.json +1 -1
|
@@ -717,7 +717,7 @@
|
|
|
717
717
|
};
|
|
718
718
|
LocalizationService.prototype.getLocalizedDate = function (key) {
|
|
719
719
|
if (dateFns.isValid(new Date(key))) {
|
|
720
|
-
return dateFns.format(new Date(key), '
|
|
720
|
+
return dateFns.format(new Date(key), 'dd.MM.yyyy', this.dateFnsLocale);
|
|
721
721
|
}
|
|
722
722
|
return "Invalid Date";
|
|
723
723
|
};
|
|
@@ -726,7 +726,7 @@
|
|
|
726
726
|
var dateValue = new Date(key);
|
|
727
727
|
if (dateFns.isValid(dateValue)) {
|
|
728
728
|
var localDate = Convert.toLocalizedDateTime(dateValue);
|
|
729
|
-
return dateFns.format(localDate, '
|
|
729
|
+
return dateFns.format(localDate, 'dd.MM.yyyy HH:mm', this.dateFnsLocale);
|
|
730
730
|
}
|
|
731
731
|
return "Invalid Date";
|
|
732
732
|
};
|