parse_timestamp format only if flag is actually set