Skip to content

Commit

Permalink
Make displaying UTC offset optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Joni Häkkänen committed Aug 21, 2024
1 parent e77d5c3 commit 5e2dddc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/capmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -1518,5 +1518,7 @@ function convertUtcToLocal(utcTimeString) {
const utcOffset = `UTC${offsetHours >= 0 ? '+' : ''}${offsetHours}:${offsetMinutes.toString().padStart(2, '0')}`

// Format the final string with the new UTC offset
return `${adjustedLocalTimeString} (${utcOffset})`
const result = alertOptions.hideOffset ? `${adjustedLocalTimeString}` : `${adjustedLocalTimeString} (${utcOffset})`;

return result
}

0 comments on commit 5e2dddc

Please sign in to comment.