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.umd.js CHANGED
@@ -1779,13 +1779,13 @@
1779
1779
 
1780
1780
  switch (format) {
1781
1781
  case FORMATS.DATE:
1782
- var fecha = new Date(text).toLocaleString(locale, {
1782
+ var fecha = new Date(text);
1783
+ fecha.setMinutes(fecha.getMinutes() + fecha.getTimezoneOffset());
1784
+ text = fecha.toLocaleString(locale, {
1783
1785
  year: 'numeric',
1784
1786
  month: 'numeric',
1785
1787
  day: 'numeric'
1786
1788
  });
1787
- fecha.setMinutes(fecha.getMinutes() + fecha.getTimezoneOffset());
1788
- text = fecha;
1789
1789
  break;
1790
1790
 
1791
1791
  case FORMATS.TIME: