Changeset 10722
- Timestamp:
- Dec 14, 2006, 1:32:31 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/concepts/pmConceptsStandard.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/concepts/pmConceptsStandard.c
r10511 r10722 336 336 timeSys = psMetadataLookupS32(&mdok, fpa->concepts, timesysName); 337 337 } 338 if (!mdok ) {338 if (!mdok || (timeSys == 0xffffffff)) { 339 339 psLogMsg(__func__, PS_LOG_WARN, "Unable to find %s in concepts when parsing %s --- assuming UTC.\n", 340 340 timesysName, pattern->name); … … 346 346 bool usaTime = false; // Is the time specified in USA (MM-DD-YYYY) order? 347 347 bool backwardsTime = false; // Is the time specified in backwards (DD-MM-YYYY) order? 348 bool yearFirst = false; // Is the time specified in yearFirst (YYYY-MM-DD) order? 348 349 bool pre2000Time = false; // Is the time specified pre-2000 (where the year only has two digits) 349 350 bool mjdTime = false; // Is the time specified a MJD? … … 364 365 365 366 // Parse the time format 367 // why should more than one be allowed?? 366 368 psList *timeFormats = psStringSplit(timeFormat, " ,;", false); // List of the format options 367 369 psListIterator *timeFormatsIter = psListIteratorAlloc(timeFormats, PS_LIST_HEAD, false); // Iter … … 370 372 usaTime = true; 371 373 backwardsTime = false; 374 yearFirst = false; 372 375 jdTime = false; 373 376 mjdTime = false; … … 375 378 backwardsTime = true; 376 379 usaTime = false; 380 yearFirst = false; 381 jdTime = false; 382 mjdTime = false; 383 } else if (strcasecmp(timeFormat, "YEAR.FIRST") == 0) { 384 yearFirst = true; 385 usaTime = false; 386 backwardsTime = false; 377 387 jdTime = false; 378 388 mjdTime = false; … … 382 392 mjdTime = true; 383 393 jdTime = false; 394 yearFirst = false; 384 395 backwardsTime = false; 385 396 usaTime = false; … … 387 398 jdTime = true; 388 399 mjdTime = false; 400 yearFirst = false; 389 401 backwardsTime = false; 390 402 usaTime = false;
Note:
See TracChangeset
for help on using the changeset viewer.
