diff --git a/models/ticket.php b/models/ticket.php
index <HASH>..<HASH> 100644
--- a/models/ticket.php
+++ b/models/ticket.php
@@ -1,7 +1,7 @@
 <?php
    class Ticket extends TORM\Model {
       public static function getNewPKValue() {
-         return mktime();
+         return time();
       }
    }
 
diff --git a/test/modelTest.php b/test/modelTest.php
index <HASH>..<HASH> 100644
--- a/test/modelTest.php
+++ b/test/modelTest.php
@@ -392,7 +392,7 @@
          $this->assertTrue($ticket->save());
 
          $ticket = Ticket::last();
-         $this->assertTrue($ticket->id>=mktime()-1000);
+         $this->assertTrue($ticket->id>=time()-1000);
          $this->assertTrue($ticket->destroy());
       }
    }
Changed mktime to time