Fixes times.toSeconds to handle hours and minutes correctly.
Merge pull request #677 from gradha/pr_fixes_times_calculation

Fixes times.toSeconds to handle hours and minutes correctly.