fixed timezones for current stream lol

This commit is contained in:
sunda 2021-11-19 16:37:36 +01:00
parent a6a3e6c28e
commit 16e45c3030
2 changed files with 4 additions and 4 deletions

View File

@ -40,11 +40,11 @@ const App = () => {
const utcEndDate = zonedTimeToUtc(new Date(stream.endsOn), 'Europe/Berlin')
const { timeZone } = Intl.DateTimeFormat().resolvedOptions()
const zonedStartDate = utcToZonedTime(utcStartDate, timeZone)
const zonedEndDate = utcToZonedTime(utcEndDate, timeZone)
const zonedStartDate = utcToZonedTime(utcStartDate, 'Europe/Berlin')
const zonedEndDate = utcToZonedTime(utcEndDate, 'Europe/Berlin')
if (
isWithinInterval(new Date(), {
start: subHours(zonedStartDate, 1),
start: subHours(zonedStartDate, 2),
end: addHours(zonedEndDate, 1),
})
) {

View File

@ -18,7 +18,7 @@ import config from '../../data/config'
import { slugify } from '../../helpers/string'
export const TrailerContainer = styled.div`
height: 22em;
height: 21em;
border: 1px solid ${colours.midnightDarker};
margin-bottom: 16px;