Skip to content

Commit 05ccd50

Browse files
committed
[fix][xs] bug fixed utc date formatting
1 parent d0344d3 commit 05ccd50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ module.exports.makeApp = function () {
199199

200200
env.addFilter('formatDateFromNow', (date) => {
201201
try {
202-
return moment(date).fromNow()
202+
return moment.utc(date).fromNow()
203203
} catch (e) {
204204
logger.warn('Failed to format date', e)
205205
return date || '--'

0 commit comments

Comments
 (0)