SyntaxFix
Write A Post
Hire A Developer
Questions
Here's what I did:
var timestamp = moment.unix({{ time }}); var utcOffset = moment().utcOffset(); var local_time = timestamp.add(utcOffset, "minutes"); var dateString = local_time.fromNow();
Where {{ time }} is the utc timestamp.
{{ time }}