mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-03 04:27:53 +00:00
Format time, fix sort (#230)
This commit is contained in:
@@ -15,12 +15,7 @@ export default {
|
||||
},
|
||||
dynamicTime(time) {
|
||||
const createdAt = moment(time * 1000);
|
||||
return createdAt.calendar(null, {
|
||||
sameDay: 'h:mm A',
|
||||
lastDay: '[Yesterday]',
|
||||
lastWeek: 'ddd',
|
||||
sameElse: 'D MMM',
|
||||
});
|
||||
return createdAt.fromNow();
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user