How can I ensure that my VueJS filter converts a given date into the fromNow() format in UTC time?
fromNow(date) {
return moment.utc(date).fromNow();
}
The timestamp provided by my Laravel backend is already generated in UTC, but the filter seems to be basing itself on the user's system time. This results in outputs like "in 5 hours" instead of fromNow in UTC. Any suggestions on how to achieve this?
Share your ideas with me!