diff --git a/service b/service index ad7867d..06e40ee 100755 --- a/service +++ b/service @@ -125,6 +125,7 @@ def main(): raw_schedule["conference"]["start"][:10], "%Y-%m-%d" ) event_tz = pytz.timezone(raw_schedule["conference"]["time_zone_name"]) + utc_offset = datetime.now(event_tz).utcoffset().total_seconds() for day in raw_schedule["conference"]["days"]: for room in day["rooms"].values(): @@ -135,9 +136,9 @@ def main(): d_h, d_m = talk["duration"].split(":") end = start + timedelta(hours=int(d_h), minutes=int(d_m)) - talk["start_ts"] = timegm(start.timetuple()) + talk["start_ts"] = int(timegm(start.timetuple()) - utc_offset) talk["start_str"] = talk["start"] - talk["end_ts"] = timegm(end.timetuple()) + talk["end_ts"] = int(timegm(end.timetuple()) - utc_offset) talk["locale"] = talk["language"] track = None