Skip to content

Commit

Permalink
fix(clock): added oslo timezone to the clock
Browse files Browse the repository at this point in the history
  • Loading branch information
vildeopp committed Jul 5, 2023
1 parent 13391a6 commit 70e512b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ function Clock() {

const time = new Intl.DateTimeFormat('no-NB', {
timeStyle: 'short',
timeZone: 'Europe/Oslo',
}).format(currentTime)

return <h3 className={classes.clock}>{time}</h3>
return <span className={classes.clock}>{time}</span>
}

export { Clock }
2 changes: 1 addition & 1 deletion next-tavla/src/Shared/components/Header/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: flex-end;
align-items: center;
}

0 comments on commit 70e512b

Please sign in to comment.