cvs: pear /MDB/MDB Date.php

From: Date: Sun, 20 Apr 2003 11:42:25 +0000
Subject: cvs: pear /MDB/MDB Date.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-9982@lists.php.net to get a copy of this message
lsmith Sun Apr 20 07:42:25 2003 EDT Modified files: /pear/MDB/MDB Date.php Log: lets ignore day light savings time here similar to pear date Index: pear/MDB/MDB/Date.php diff -u pear/MDB/MDB/Date.php:1.11 pear/MDB/MDB/Date.php:1.12 --- pear/MDB/MDB/Date.php:1.11 Sun Jan 19 06:13:36 2003 +++ pear/MDB/MDB/Date.php Sun Apr 20 07:42:25 2003 @@ -42,7 +42,7 @@ // | Author: Lukas Smith <smith@backendmedia.com> | // +----------------------------------------------------------------------+ // -// $Id: Date.php,v 1.11 2003/01/19 11:13:36 lsmith Exp $ +// $Id: Date.php,v 1.12 2003/04/20 11:42:25 lsmith Exp $ // /** @@ -115,7 +115,7 @@ function date2Mdbstamp($hour = NULL, $minute = NULL, $second = NULL, $month = NULL, $day = NULL, $year = NULL) { - return MDB_Date::unix2Mdbstamp(mktime($hour, $minute, $second, $month, $day, $year)); + return MDB_Date::unix2Mdbstamp(mktime($hour, $minute, $second, $month, $day, $year, 0)); } // }}} @@ -145,8 +145,10 @@ */ function mdbstamp2Unix($mdb_timestamp) { - return strtotime($mdb_timestamp); - } + $arr = MDB_Date::mdbstamp2Date($mdb_timestamp); + + return mktime($arr['hour'], $arr['minute'], $arr['second'], $arr['month'], $arr['day'], $arr['year'], 0); + } // }}} // {{{ mdbstamp2Date()

« previous php.pear.cvs (#9982) next »