Skip to content

Commit

Permalink
fix(Table): showing correct sign for timezone diff
Browse files Browse the repository at this point in the history
  • Loading branch information
xandjiji committed Jan 31, 2023
1 parent 6916e1d commit be6fe43
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -48,5 +48,5 @@ export const getTimezoneDiff = (timezoneOffsetMinutes: number) => {
const hoursDiff =
(new Date().getTimezoneOffset() - timezoneOffsetMinutes) / MINUTES_IN.HOUR

return `${getNumberSign(hoursDiff)}${hoursDiff}h`
return `${getNumberSign(hoursDiff)}${Math.abs(hoursDiff)}h`
}

0 comments on commit be6fe43

Please sign in to comment.