sc0v / binder

The Spring Carnival managment application built for Carnegie Mellon Spring Carnival.
16 stars 19 forks source link

Fixes seeding for shifts. #262

Closed timparenti closed 7 years ago

timparenti commented 7 years ago

In particular, the expression (i * 4.hours) evaluates as an integer representing the correct number of seconds, but when adding that integer to the date it is treated as a number of days, leading to shifts spaced ~39.5 years apart.

Further, watch shifts are spaced every 2 hours, not every 4.

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 14.155% when pulling fbe98a919e5b49548c90188d67f918c63bdc9e50 on timparenti:fix-shifts into 7d340499a0c4ebf90797f9193cf6929b4bc42c46 on sc0v:master.