i\'m using moment.js with timezones for date manipulation in a webapp. i\'m storing all the dates in UTC and return them to UI as UTC. I\'m having the timezone of the user.
Even if you don't know the timezone, you get the client offset and use like this,
let utcTime = "2017-02-02 08:00:13.567"; var offset = moment().utcOffset(); var localText = moment.utc(utcTime).utcOffset(offset).format("L LT");
Try this JsFiddle