ywana-core8 0.0.337 → 0.0.338

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ywana-core8",
3
- "version": "0.0.337",
3
+ "version": "0.0.338",
4
4
  "description": "ywana-core8",
5
5
  "author": "Ernesto Roldan Garcia",
6
6
  "license": "MIT",
package/src/html/table.js CHANGED
@@ -210,11 +210,13 @@ const StringCellViewer = ({ id, value, format, options }) => {
210
210
  const option = options ? buildOptions().find(o => o.value === value) : null
211
211
 
212
212
  let text = option ? option.label : value
213
- const locale = window.navigator.userLanguage || window.navigator.language;
213
+ const locale = window.navigator.userLanguage || window.navigator.language;
214
214
  switch (format) {
215
215
  case FORMATS.DATE:
216
216
  let fecha = new Date(text)
217
+ console.log("fecha1", fecha)
217
218
  fecha.setMinutes(fecha.getMinutes() + fecha.getTimezoneOffset())
219
+ console.log("fecha2", fecha)
218
220
  text = fecha.toLocaleString( locale, { year: 'numeric', month: 'numeric', day: 'numeric'});
219
221
  break;
220
222
  case FORMATS.TIME: