TNL-772: Fix course time settings.

[TNL-772](https://openedx.atlassian.net/browse/TNL-772)
@jmclaus , @olmar please review.
@polesye Is ```date``` still a needed dependency? I do not see any use of it in code below (or function that may require it).