mde / timezone-js

DEPRECATED: Timezone-enabled JavaScript Date object. Uses Olson zoneinfo files for timezone data.
824 stars 183 forks source link

invalid date #181

Closed DmitrijV1013 closed 7 years ago

DmitrijV1013 commented 7 years ago

Hi. We use date.js to display the date. Use the date display in Spanish. The problem arises only from the date of the display with the month of January January Spanish - Enero we have var : "Ene 02, 2017" In date.js : .replace(/E+/g, function (token) { return DAYS[_this.getDay()].substring(0, token.length); }) this metod replace and run incorrect action how to solve this problem?

mde commented 7 years ago

All work on this library should probably be stopped in favor of eventually just using the upcoming native temporal module: https://github.com/maggiepint/proposal-temporal