@kipicore/dbcore 1.1.154 → 1.1.155
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/dist/helpers/utils.js +0 -3
- package/package.json +1 -1
package/dist/helpers/utils.js
CHANGED
|
@@ -558,9 +558,6 @@ function formatDateIfNeeded(value) {
|
|
|
558
558
|
function isStrictISODate(val) {
|
|
559
559
|
return /^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d+)?Z?)?$/.test(val);
|
|
560
560
|
}
|
|
561
|
-
if (value instanceof Date) {
|
|
562
|
-
return value.toLocaleDateString('en-GB');
|
|
563
|
-
}
|
|
564
561
|
if (typeof value === 'string' && isStrictISODate(value)) {
|
|
565
562
|
const parsed = new Date(value);
|
|
566
563
|
if (!isNaN(parsed.getTime())) {
|
package/package.json
CHANGED