Fixed datetime errors in createcourse