Index: /trunk/ippTools/src/pxinject.c
===================================================================
--- /trunk/ippTools/src/pxinject.c	(revision 10038)
+++ /trunk/ippTools/src/pxinject.c	(revision 10039)
@@ -128,5 +128,25 @@
     }
 
-    if (!newExpInsert(config->dbh, exp_tag, exp_id, camera, telescope, exp_type, imfiles)) {
+    psTime *dateobs = NULL;
+    {
+        psString dateobsStr = psMetadataLookupStr(&status, config->args, "-dateobs");
+        if (!status) {
+            psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -dateobs");
+            return false;
+        }
+        dateobs = psTimeFromISO(dateobsStr, PS_TIME_UTC);
+    }
+
+
+    if (!newExpInsert(config->dbh,
+                (psU64)atoll(exp_tag),
+                exp_id,
+                camera,
+                telescope,
+                dateobs,
+                exp_type,
+                imfiles
+            )
+        ) {
         psError(PS_ERR_UNKNOWN, false, "database error");
         return false;
Index: /trunk/ippTools/src/pxinjectConfig.c
===================================================================
--- /trunk/ippTools/src/pxinjectConfig.c	(revision 10038)
+++ /trunk/ippTools/src/pxinjectConfig.c	(revision 10039)
@@ -50,4 +50,6 @@
     psMetadataAddStr(newExpArgs, PS_LIST_TAIL, "-telescope",  0,
         "define the telescope name (required)", NULL);
+    psMetadataAddStr(newExpArgs, PS_LIST_TAIL, "-dateobs",  0,
+        "define observation time", NULL);
     psMetadataAddStr(newExpArgs, PS_LIST_TAIL, "-exp_type",  0,
         "define the type of exposure (required)", NULL);
