Skip to content

Commit

Permalink
Updated AM/PM tags for message timestamps to display properly
Browse files Browse the repository at this point in the history
  • Loading branch information
klpulliam-37 committed May 6, 2023
1 parent af8214d commit e23b53b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion UserInterface/js/utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,13 @@ export function toStandardTime(_hours) {
let hours = _hours;
let amPm = '';
if (hours > 12) {
amPm = 'AM';
amPm = 'PM';
hours -= 12;
} else if (hours == 0) {
amPm = 'AM';
hours = "12";
}else if (hours < 12) {
amPm = 'AM';
}else{
amPm = 'PM';
}
Expand Down

0 comments on commit e23b53b

Please sign in to comment.