Deprecation warning in the browser's console: "Value provided is not in a recognized RFC2822 or ISO format"
Written By
Alfonso Crisci
How To articles are not official guidelines or officially
supporteddocumentation. They are community-contributed content and may
not alwaysreflect the latest updates to Liferay DXP. We welcome your
feedback toimprove How to articles!
While we make every effort to ensure this Knowledge Base is accurate,
itmay not always reflect the most recent updates or official
guidelines.We appreciate your understanding and encourage you to reach
out with anyfeedback or concerns.
Legacy Article
You are viewing an article from our legacy
"FastTrack"publication program, made available for
informational purposes. Articlesin this program were published without a
requirement for independentediting or verification and are provided
"as is" withoutguarantee.
Before using any information from this article, independently verify
itssuitability for your situation and project.
Issue
- After patching a bundle with a fix (Fix Pack or hotfix) that includes the solutions for LPS-121066 and LPS-121499, customers and DXP users may notice the below warning message in the browser's console:
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 and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments:
[0] _isAMomentObject: true, _isUTC: false, _useUTC: false, _l: undefined, _i: 09/14/2020, _f: undefined, _strict: undefined, _locale: [object Object]
deprecate/<@http://localhost:8080/combo/?browserId=firefox&minifierType=&languageId=de_DE&b=7210&t=1601990324650&/o/js/resolved-module/dynamic-data-mapping-form-field-type@4.0.66/Paragraph/ParagraphRegister.soy.js&/o/js/resolved-module/dynamic-data-mapping-form-field-type@4.0.66/util/strings.es.js&/o/js/resolved-module/dynamic-data-mapping-form-field-type@4.0.66/Options/OptionsRegister.soy.js&/o/js/resolved-module/dynamic-data-mapping-form-field-type@4.0.66/Captcha/CaptchaRegis…
Resolution
- This warning is safe to ignore. This is a deprecation warning that comes from
moment.js
and has no negative effect on the date picker.
Did this article resolve your issue ?