Index: /trunk/psLib/src/astro/psTime.c
===================================================================
--- /trunk/psLib/src/astro/psTime.c	(revision 6268)
+++ /trunk/psLib/src/astro/psTime.c	(revision 6269)
@@ -10,6 +10,6 @@
  *  @author Ross Harman, MHPCC
  *
- *  @version $Revision: 1.80 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-01-31 23:24:21 $
+ *  @version $Revision: 1.81 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-02-01 00:17:44 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -1498,4 +1498,5 @@
     // Check for NULL string
     PS_ASSERT_PTR_NON_NULL(input,NULL);
+    PS_ASSERT_INT_WITHIN_RANGE(type, PS_TIME_TAI, PS_TIME_TT, NULL);
 
     // Convert YYYY-MM-DDThh:mm:ss.sss in string form to tm time
@@ -1521,5 +1522,8 @@
     outTime = p_psTimeFromTM(&tmTime);
     outTime->nsec = millisecond * 1000000;
-    outTime->type = type;
+    //    outTime->type = type;
+    if (type != PS_TIME_TAI) {
+        outTime = psTimeConvert(outTime, type);
+    }
 
     return outTime;
