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
// No warning in console about deprecation with "value provided is not in a recognised// RFC2822 or ISO format", but text displays "Invalid date" on the pageelement.textContent=moment(entry['date'],View.getSiteValues()['longdate']());// Deprecation warning in console but text displays the date correctlyelement.textContent=moment(entry['date']).format(View.getSiteValues()['longdate']());
I am stuck between having a valid date but getting a deprecation warning in the console or formatting it 'properly' but making the date invalid.
Description of the Issue and Steps to Reproduce:
I am stuck between having a valid date but getting a deprecation warning in the console or formatting it 'properly' but making the date invalid.
Please include the values of all variables used.
entry['date']
-moment(moment(), moment.ISO_8601)
View.getSiteValues()['longdate']()
-'Do MMMM YYYY'
Environment: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0
Other information that may be helpful:
The time zone setting of the machine the code is running on
Thu Nov 08 2018 15:54:38 GMT+0000 (Greenwich Mean Time)
The time and date at which the code was run
08/11/2018, 15:54:38
Any other libraries / tools in use
Node.js v8.11.1 with Express 4.16.0
The text was updated successfully, but these errors were encountered: