@cdmx/wappler_ag_grid 1.4.0 → 1.4.1
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 +4 -1
- package/package.json +1 -1
package/dmx-ag-grid.js
CHANGED
|
@@ -706,7 +706,10 @@ dmx.Component('ag-grid', {
|
|
|
706
706
|
};
|
|
707
707
|
|
|
708
708
|
const convertedTimestamp = date.toLocaleString(options.date_locale, options);
|
|
709
|
-
|
|
709
|
+
const [datePart, timePart] = convertedTimestamp.split(', ');
|
|
710
|
+
const [day, month, year] = datePart.split('/');
|
|
711
|
+
const [hours, minutes, seconds] = timePart.split(':');
|
|
712
|
+
const dateTimezone = new Date(`${year}-${month}-${day}T${hours}:${minutes}:${seconds}`).getTime();
|
|
710
713
|
return formatDate(dateTimezone)
|
|
711
714
|
} else {
|
|
712
715
|
return formatDate(date);
|