Made some changes to "timeofday" setter