diff --git a/src/App.vue b/src/App.vue index 0293763..152cae4 100644 --- a/src/App.vue +++ b/src/App.vue @@ -2717,17 +2717,6 @@ export default { }); }, - // Format a datetime nicely for chat timestamp. - prettyDate(date) { - if (date == undefined) return ''; - let hours = date.getHours(), - minutes = String(date.getMinutes()).padStart(2, '0'), - ampm = hours >= 11 ? "pm" : "am"; - - let hour = hours % 12 || 12; - return `${(hour)}:${minutes} ${ampm}`; - }, - // CSS classes for the profile button (color coded genders) profileButtonClass(user) { // VIP background. diff --git a/src/components/MessageBox.vue b/src/components/MessageBox.vue index 12cfb9f..bbe065e 100644 --- a/src/components/MessageBox.vue +++ b/src/components/MessageBox.vue @@ -156,7 +156,7 @@ export default { if (date == undefined) return ''; let hours = date.getHours(), minutes = String(date.getMinutes()).padStart(2, '0'), - ampm = hours >= 11 ? "pm" : "am"; + ampm = hours >= 12 ? "pm" : "am"; let hour = hours % 12 || 12; return `${(hour)}:${minutes} ${ampm}`;