@solcre-org/core-ui 2.17.9 → 2.18.0
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.
|
@@ -8346,16 +8346,16 @@ class DateUtility {
|
|
|
8346
8346
|
}
|
|
8347
8347
|
static fromUruguayToUTC(date, outputFormat = 'DD/MM/YYYY HH:mm') {
|
|
8348
8348
|
try {
|
|
8349
|
-
if (!date)
|
|
8349
|
+
if (!date)
|
|
8350
8350
|
return '';
|
|
8351
|
-
|
|
8352
|
-
let inputDate = null;
|
|
8351
|
+
let utcDate;
|
|
8353
8352
|
if (typeof date === 'string') {
|
|
8354
8353
|
const parts = date.split('T');
|
|
8355
8354
|
if (parts.length >= 2) {
|
|
8356
8355
|
const [y, m, d] = parts[0].split('-').map(Number);
|
|
8357
8356
|
const [hh, mm, ss] = parts[1].split(':').map(Number);
|
|
8358
|
-
|
|
8357
|
+
const naiveUtc = new Date(Date.UTC(y, m - 1, d, hh ?? 0, mm ?? 0, ss ?? 0));
|
|
8358
|
+
utcDate = new Date(naiveUtc.getTime() + 3 * 60 * 60 * 1000);
|
|
8359
8359
|
}
|
|
8360
8360
|
else {
|
|
8361
8361
|
const tmp = new Date(date);
|
|
@@ -8363,14 +8363,12 @@ class DateUtility {
|
|
|
8363
8363
|
console.error('Fecha inválida:', date);
|
|
8364
8364
|
return '';
|
|
8365
8365
|
}
|
|
8366
|
-
|
|
8366
|
+
utcDate = new Date(tmp.getTime() + 3 * 60 * 60 * 1000);
|
|
8367
8367
|
}
|
|
8368
8368
|
}
|
|
8369
8369
|
else {
|
|
8370
|
-
|
|
8370
|
+
utcDate = new Date(date.getTime());
|
|
8371
8371
|
}
|
|
8372
|
-
const offsetMs = 3 * 60 * 60 * 1000;
|
|
8373
|
-
const utcDate = new Date(inputDate.getTime() + offsetMs);
|
|
8374
8372
|
return DateUtility.formatByPattern(utcDate, outputFormat);
|
|
8375
8373
|
}
|
|
8376
8374
|
catch (e) {
|
|
@@ -16657,12 +16655,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
|
|
|
16657
16655
|
// Este archivo es generado automáticamente por scripts/update-version.js
|
|
16658
16656
|
// No edites manualmente este archivo
|
|
16659
16657
|
const VERSION = {
|
|
16660
|
-
full: '2.
|
|
16658
|
+
full: '2.18.0',
|
|
16661
16659
|
major: 2,
|
|
16662
|
-
minor:
|
|
16663
|
-
patch:
|
|
16664
|
-
timestamp: '2025-12-
|
|
16665
|
-
buildDate: '
|
|
16660
|
+
minor: 18,
|
|
16661
|
+
patch: 0,
|
|
16662
|
+
timestamp: '2025-12-29T15:55:44.175Z',
|
|
16663
|
+
buildDate: '29/12/2025'
|
|
16666
16664
|
};
|
|
16667
16665
|
|
|
16668
16666
|
class MainNavComponent {
|