Index: trunk/psastro/src/psastroDefineFiles.c
===================================================================
--- trunk/psastro/src/psastroDefineFiles.c	(revision 36837)
+++ trunk/psastro/src/psastroDefineFiles.c	(revision 42840)
@@ -61,5 +61,7 @@
 	    return false;
 	}
-	psTime *endtime = psTimeFromString (KHendDate, PS_TIME_TAI);
+	// psTime *endtime = psTimeFromString (KHendDate, PS_TIME_TAI);
+	// 'endtime' and 'time' must be in the same units 
+	psTime *endtime = psTimeFromString (KHendDate, time->type);
 	if (!endtime) {
 	    psError (PM_ERR_CONFIG, false, "KH.CORRECT.APPLY requested, KH.CORRECT.ENDDATE has an invalid date/time");
