Skip to content

Commit 30098ff

Browse files
committed
Properly convert last year's epoch for imports
1 parent 51862a5 commit 30098ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

uber/site_sections/staffing_admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def _copy_department_shifts(service, to_department, from_department, dept_role_m
6868
FROM_EPOCH = c.EVENT_TIMEZONE.localize(datetime.strptime(from_config['SHIFTS_EPOCH'], '%Y-%m-%d %H:%M:%S.%f'))
6969
EPOCH_DELTA = c.SHIFTS_EPOCH - FROM_EPOCH
7070
else:
71-
FROM_EPOCH = from_config['EPOCH']
71+
FROM_EPOCH = c.EVENT_TIMEZONE.localize(datetime.strptime(from_config['EPOCH'], '%Y-%m-%d %H:%M:%S.%f'))
7272
EPOCH_DELTA = c.EPOCH - FROM_EPOCH
7373

7474
for from_job in from_department['jobs']:

0 commit comments

Comments
 (0)