You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using datejs in a node.js application. I have set it to the German localization.
If somebody enters a date without a year, e.g. "12. März" the year is weirdly set to 2001 by default if I parse it:
According to the documentaion the default year that is assumed should be the current year, i.e. 2017 not 2001. This works if I disable the German localization:
require('datejs');
console.log(Date.parse("12 March"));
// Output: Sun Mar 12 2017 00:00:00 GMT+0100 (CET)
So this seems to be a bug affecting the German localization.
The text was updated successfully, but these errors were encountered:
I am using datejs in a node.js application. I have set it to the German localization.
If somebody enters a date without a year, e.g. "12. März" the year is weirdly set to 2001 by default if I parse it:
According to the documentaion the default year that is assumed should be the current year, i.e. 2017 not 2001. This works if I disable the German localization:
So this seems to be a bug affecting the German localization.
The text was updated successfully, but these errors were encountered: