﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
600	psTimeFromISO fails to parse an ISO time	Paul Price	David.Robbins@…	"Attempting to parse a valid ISO time results in:

2005:11:23 18:01:46Z|mithrandir          |E|psTimeFromISO (psTime.c:1375)
    Specified ISO Time string, '2005-11-23T12:34:56.789', is malformed.  Must be
in 'YYYY-MM-DDThh:mm:ss.sss' format.

This is due to the following snippet in psTime.c:

    // Convert YYYY-MM-DDThh:mm:ss.sss in string form to tm time
    if (sscanf(input, ""%d-%d-%dT%d:%d:%d,%d"", &tmTime.tm_year, &tmTime.tm_mon,
&tmTime.tm_mday,
               &tmTime.tm_hour, &tmTime.tm_min, &tmTime.tm_sec,&millisecond) < 7) {
        psError(PS_ERR_BAD_PARAMETER_VALUE, true,
PS_ERRORTEXT_psTime_ISOTIME_MALFORMED, input);
        return NULL;
    }

Note the presence of a comma in the sscanf format, which should be a decimal
point (this despite the comment line above).

The string testTime1Str in tst_psTime_01.c which is used to test psTimeFromISO
also contains a comma, which causes the test to pass."	defect	closed	high		astro	0.8.0	normal	fixed		
