IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 5, 2005, 12:00:48 PM (20 years ago)
Author:
drobbin
Message:

fixed formatting for strings for bug 600, TimeFromISO

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/astro/psTime.c

    r5507 r5684  
    1010 *  @author Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.75 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2005-11-12 03:37:34 $
     12 *  @version $Revision: 1.76 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2005-12-05 22:00:48 $
    1414 *
    1515 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    12171217
    12181218    // Create string with milliseconds
    1219     if (snprintf(timeString, MAX_TIME_STRING_LENGTH, "%s,%1dZ", tempString, ds) < 0) {
     1219    if (snprintf(timeString, MAX_TIME_STRING_LENGTH, "%s.%1dZ", tempString, ds) < 0) {
    12201220        psError(PS_ERR_OS_CALL_FAILED, true, PS_ERRORTEXT_psTime_APPEND_MSEC_FAILED);
    12211221    }
     
    13711371
    13721372    // Convert YYYY-MM-DDThh:mm:ss.sss in string form to tm time
    1373     if (sscanf(input, "%d-%d-%dT%d:%d:%d,%d", &tmTime.tm_year, &tmTime.tm_mon, &tmTime.tm_mday,
     1373    if (sscanf(input, "%d-%d-%dT%d:%d:%d.%d", &tmTime.tm_year, &tmTime.tm_mon, &tmTime.tm_mday,
    13741374               &tmTime.tm_hour, &tmTime.tm_min, &tmTime.tm_sec,&millisecond) < 7) {
    13751375        psError(PS_ERR_BAD_PARAMETER_VALUE, true, PS_ERRORTEXT_psTime_ISOTIME_MALFORMED, input);
Note: See TracChangeset for help on using the changeset viewer.