Skip to content

Commit

Permalink
graph 24h format comment
Browse files Browse the repository at this point in the history
  • Loading branch information
a-sync committed Nov 21, 2023
1 parent d3d82c3 commit de7834b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/game-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ class ServerHistory {
}

formatHour(h: number): string {
// return String(h).padStart(2, '0'); // 24 hour format
const ampm = (h >= 12) ? 'pm' : 'am';
const hours = (h > 12) ? h - 12 : h;
return hours + ampm;
Expand Down

0 comments on commit de7834b

Please sign in to comment.