@cdmx/wappler_ag_grid 0.7.1 → 0.7.2
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/dmx-ag-grid.js +16 -12
- package/package.json +1 -1
package/dmx-ag-grid.js
CHANGED
|
@@ -362,19 +362,23 @@ dmx.Component('ag-grid', {
|
|
|
362
362
|
}
|
|
363
363
|
});
|
|
364
364
|
}
|
|
365
|
-
|
|
366
365
|
function formatTime(params, timezone) {
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
366
|
+
if (params.value) {
|
|
367
|
+
const date = new Date(params.value)
|
|
368
|
+
if (timezone) {
|
|
369
|
+
const options = {
|
|
370
|
+
timeZone: timezone,
|
|
371
|
+
};
|
|
372
|
+
|
|
373
|
+
const convertedTimestamp = date.toLocaleString('en-US', options);
|
|
374
|
+
dateTimezone = new Date(convertedTimestamp).getTime();
|
|
375
|
+
return formatDate(dateTimezone)
|
|
376
|
+
} else {
|
|
377
|
+
return formatDate(date);
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
else {
|
|
381
|
+
return '-'
|
|
378
382
|
}
|
|
379
383
|
}
|
|
380
384
|
dateFilterParams = {
|