This code was testing the format type against a collection of format type
categories, which doesn't make any sense. This commit fixes the problem.
Found by inspection.
{
assert (format == NULL || fmt_is_numeric (format->type));
if (format != NULL
{
assert (format == NULL || fmt_is_numeric (format->type));
if (format != NULL
+ && (fmt_get_category (format->type)
& (FMT_CAT_DATE | FMT_CAT_TIME | FMT_CAT_DATE_COMPONENT)))
{
union value v_in, v_out;
& (FMT_CAT_DATE | FMT_CAT_TIME | FMT_CAT_DATE_COMPONENT)))
{
union value v_in, v_out;