Skip to content

Commit

Permalink
add 2 hours everywhere, gonna be fun when summertime ends... fkn time…
Browse files Browse the repository at this point in the history
…zones man
  • Loading branch information
joshinils committed Sep 5, 2020
1 parent d9610d9 commit b981439
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions models/programme.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from datetime import datetime
from datetime import datetime, timedelta
from typing import Dict
from .channelName import ChannelName

Expand All @@ -7,8 +7,8 @@ class Programme:
def __init__(self, channelName: ChannelName, start: datetime, stop: datetime):
self.channelName: ChannelName = channelName
date_format: str = "%Y%m%d%H%M%S %z"
self.start = datetime.strptime(start, date_format)
self.stop = datetime.strptime(stop, date_format)
self.start = datetime.strptime(start, date_format) + timedelta(hours=2)
self.stop = datetime.strptime(stop, date_format) + timedelta(hours=2)
self.data: Dict = {}
self.prominent = False
if self.start.hour >= 20 and self.start.minute >= 1:
Expand Down

0 comments on commit b981439

Please sign in to comment.