ywana-core8 0.0.336 → 0.0.337
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/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +3 -3
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +3 -3
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/table.js +2 -2
package/package.json
CHANGED
package/src/html/table.js
CHANGED
@@ -213,9 +213,9 @@ const StringCellViewer = ({ id, value, format, options }) => {
|
|
213
213
|
const locale = window.navigator.userLanguage || window.navigator.language;
|
214
214
|
switch (format) {
|
215
215
|
case FORMATS.DATE:
|
216
|
-
let fecha = new Date(text)
|
216
|
+
let fecha = new Date(text)
|
217
217
|
fecha.setMinutes(fecha.getMinutes() + fecha.getTimezoneOffset())
|
218
|
-
text = fecha
|
218
|
+
text = fecha.toLocaleString( locale, { year: 'numeric', month: 'numeric', day: 'numeric'});
|
219
219
|
break;
|
220
220
|
case FORMATS.TIME:
|
221
221
|
text = new Date(text).toLocaleString( locale, { year: 'hour', month: 'minute', day: 'second' }); break;
|