MTrack/CommitChecker.php
[web.mtrack] / MTrack / CommitChecker.php
index 569379b..72bc0c4 100644 (file)
@@ -196,7 +196,7 @@ class MTrack_CommitChecker {
             $c->changelog   = $bridge->getCommitMessage();
             $c->changeby    = $this->authUser->email; //???
             $c->changeby_id = $this->authUser->id; //???
-            $c->ctime       = time();
+            $c->ctime       = isset($bridge->props['Date']) ? strtotime($bridge->props['Date']) : time();
             $c->fileActions = $bridge->fileActions;
             $changes[] = $c;
         }
@@ -269,7 +269,7 @@ class MTrack_CommitChecker {
                 // removed all the code that handles hashed ticked ids...
                 //DB_DataObject::DebugLevel(1);
                 $T = DB_DataObject::Factory('mtrack_ticket');
-                $T->project_id = $this->repo->id;
+                $T->project_id = $this->repo->project_id;
                 if (!$T->get($tkt)) {
                     continue;
                 }