Index: trunk/psModules/src/camera/pmFPAfileDefine.c
===================================================================
--- trunk/psModules/src/camera/pmFPAfileDefine.c	(revision 9437)
+++ trunk/psModules/src/camera/pmFPAfileDefine.c	(revision 9518)
@@ -638,7 +638,13 @@
     // detselect -camera (camera) -time (time) -type (type) [others]
     // camera and time are functions of (pmFPA *input)
-    // XXX we need to get the time, but we don't have the CELL.TIME yet set (no CELL yet read)
-    // add other options here f(pmFPA *input, type)
-    psTime *time = psTimeGetNow (PS_TIME_TAI);
+    // XXX add other options here f(pmFPA *input, type)
+
+    // Get the time from FPA.TIME
+    psTime *time = psMetadataLookupPtr(NULL, fpa->concepts, "FPA.TIME");
+    if (time->sec == 0 && time->nsec == 0) {
+        psError(PS_ERR_UNKNOWN, false, "FPA.TIME has not been set.\n");
+        psFree(fpa);
+        return NULL;
+    }
     pmDetrendSelectOptions *options = pmDetrendSelectOptionsAlloc(config->cameraName, *time, type);
     psFree (time);
