Skip to content

Commit

Permalink
Update radarscript.js
Browse files Browse the repository at this point in the history
  • Loading branch information
BusyBird15 authored Jul 10, 2024
1 parent e7b3321 commit 2f56515
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions radarscript.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,12 +237,12 @@ function getReport(polycoords, type){
const minute = parseInt(timestamp.substring(2, 4));
const date = new Date();
date.setHours(hour, minute);
const hours = date.getHours();
const hours = date.getHours() - 4;
const minutes = date.getMinutes();
const ampm = hours >= 12 ? 'pm' : 'am';
const formattedHours = (hours % 12) || 12;
const formattedMinutes = minutes < 10 ? `0${minutes}` : minutes;
newTime = `${formattedHours}:${formattedMinutes} ${ampm}`;
newTime = `${formattedHours}:${formattedMinutes} ${ampm} EST`;

construct = construct + '<p style="margin: 0px;"><b>Report Time:</b> ' + newTime + '</p>';

Expand Down

0 comments on commit 2f56515

Please sign in to comment.