ywana-core8 0.0.335 → 0.0.336

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