errors when hour%12 is 0