Fix for 0 hour case

Automatically change from 0 to 12 o’clock on 12-hour clock