Defaulting to 12-hour time format.
Fix TypeError in color_to_hash() (LP: #1166884)