diff --git a/src/coursebox/core/info.py b/src/coursebox/core/info.py index 2eb65c5d9c987fb449473e9faa16f0cf992cc7aa..2123b5d303326aea9ee42f88241b4fe9f8db2cee 100644 --- a/src/coursebox/core/info.py +++ b/src/coursebox/core/info.py @@ -94,7 +94,7 @@ def first_day_of_class(info): if continuing_education(): first_day_of_class = datetime(year=year(), month=info['first-month'], day=info['first-day'], hour=info['hour'][0], minute=info['minute'][0]) else: - mo_first = datetime(year=year(), month=1 if semester() == 'spring' else 8, day=1, hour=13, minute=0) + mo_first = datetime(year=year(), month=1 if semester() == 'spring' else 8, day=1, hour=info.get('lecture_start_hour', 13), minute=0) # scroll to monday while mo_first.weekday() != 0: #strftime('%A') is not 'Monday': mo_first -= timedelta(days=1) @@ -445,7 +445,7 @@ def class_information(verbose=False, n = l['number'] date = l['date'] - dd = timedelta(days=l.get('show_solutions_after', 1)) + dd = timedelta(days=l.get('show_solutions_after', 1), hours=4) d['release_rules'][str(n)] = dict(start=date+dd, end=date+timedelta(days=2000)) # Update with section information. if sections is not None: