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 tried updating to the most recent version (2.22.1), but it exhibits the exact same problem:
For some reason, .fromNow() just stopped working.
var m = moment("2018-05-07 11:40:30");
m.fromNow(); // returns "Invalid date"
var m2 = moment([2018, 5, 7]);
m2.fromNow(); // returns "Invalid date" as well
Curiously, .isValid() returns true with both dates.
Am I doing something wrong? Those dates look good to me.
Environment:
Safari 11.1 and Chrome 66 on macOS 10.13.4
Mon May 07 2018 11:50:47 GMT+0200 (CEST)
5/7/2018, 11:50:47 AM
-120
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1 Safari/605.1.15
2.20.1
The text was updated successfully, but these errors were encountered:
Description of the Issue and Steps to Reproduce:
I'm using a custom version of MomentJS 2.20.1 where I removed all locales but the German one: https://gist.github.com/SamusAranX/4df8b46fa49b09af1a657cf877e51666
I tried updating to the most recent version (2.22.1), but it exhibits the exact same problem:
For some reason,
.fromNow()
just stopped working.Curiously,
.isValid()
returns true with both dates.Am I doing something wrong? Those dates look good to me.
Environment:
Safari 11.1 and Chrome 66 on macOS 10.13.4
The text was updated successfully, but these errors were encountered: