@cdmx/wappler_ag_grid 1.8.9 → 1.8.10
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 +3 -3
- package/package.json +1 -1
package/dmx-ag-grid.js
CHANGED
|
@@ -844,10 +844,10 @@ dmx.Component('ag-grid', {
|
|
|
844
844
|
if (params.value) {
|
|
845
845
|
const date = new Date(params.value)
|
|
846
846
|
if (timezone) {
|
|
847
|
-
const
|
|
848
|
-
timeZone: timezone
|
|
847
|
+
const tzOptions = {
|
|
848
|
+
timeZone: timezone
|
|
849
849
|
};
|
|
850
|
-
const convertedTimestamp = date.toLocaleString(
|
|
850
|
+
const convertedTimestamp = date.toLocaleString('en-GB', tzOptions);
|
|
851
851
|
const [datePart, timePart] = convertedTimestamp.split(', ');
|
|
852
852
|
const [day, month, year] = datePart.split('/');
|
|
853
853
|
const [hours, minutes, seconds] = timePart.split(':');
|