Reputation: 65
Why
moment().utc("14:30", "HH:mm").format()
gives me
2019-06-07T00:56:14Z - my local time
instead of
2019-06-07T14:30:14Z
Thank you in advance for help.
Upvotes: 0
Views: 52
Reputation: 6006
Use the moment without ()
like this moment.utc("14:30", "HH:mm").format()
Upvotes: 1