Was your previous code for the Timer widget or the Time Input widget?
The Time Input widget sends an array of fields that tell you the start and end times in seconds after midnight, the days of the week that are selected, timezone etc. More info here: