fix %c and %x date/time formats