offset-dev / strapi-calendar

Visualize your Strapi content in month, week or daily view
37 stars 13 forks source link

Deprecation warning at moment js initialization #14

Closed marcjoancr closed 2 years ago

marcjoancr commented 2 years ago

Adding date format on moment initialization in order to prevent the following log message:

Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: false, _useUTC: false, _l: undefined, _i: Sep 28, 2022, _f: undefined, _strict: undefined, _locale: [object Object]
LuisRodriguezLD commented 2 years ago

Thank you for this great PR. Everything looks good to me but could you change the target? I'd rather merge this into develop

Also, we are participating in https://hacktoberfest.com/ and we invite you to sign up but this is not a requirement.