Alexander Nicolaysen =?UTF-8?Q?S=C3=B8rnes=20?=: testData : Avoid deprecated mktime()

Alexander Nicolaysen Sørnes asornes at winehq.org
Sun Jan 12 08:57:19 CST 2014


Module: appdb
Branch: master
Commit: d526734565606ddba50cd0c51783a719d9bd5b91
URL:    http://source.winehq.org/git/appdb.git/?a=commit;h=d526734565606ddba50cd0c51783a719d9bd5b91

Author: Alexander Nicolaysen Sørnes <alexsornes at gmail.com>
Date:   Sun Jan 12 15:44:36 2014 +0100

testData: Avoid deprecated mktime()

---

 include/testData.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/testData.php b/include/testData.php
index b30709f..005ea8a 100644
--- a/include/testData.php
+++ b/include/testData.php
@@ -1484,7 +1484,7 @@ class testData{
         if(!$this->iTestingId)
             return false;
 
-        return ((mktime() - mysqltimestamp_to_unixtimestamp($this->sSubmitTime)) > (60 * 60 * 24  * TESTDATA_AGED_THRESHOLD));
+        return ((time() - mysqltimestamp_to_unixtimestamp($this->sSubmitTime)) > (60 * 60 * 24  * TESTDATA_AGED_THRESHOLD));
     }
 
     public function objectSetParent($iNewId, $sClass = 'version')




More information about the wine-cvs mailing list