Combined code

known issue: can't change time if time set at 12; button behaves weirdly