From: <sy...@us...> - 2007-08-30 20:08:23
|
Update of /cvsroot/tikiwiki/tiki In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv2768 Modified Files: Tag: BRANCH-1-9 tiki-view_tracker.php Log Message: [FIX]tracker: date was incorrect on some servers Index: tiki-view_tracker.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/tiki-view_tracker.php,v retrieving revision 1.72.2.79 retrieving revision 1.72.2.80 diff -u -d -r1.72.2.79 -r1.72.2.80 --- tiki-view_tracker.php 14 Aug 2007 22:45:16 -0000 1.72.2.79 +++ tiki-view_tracker.php 30 Aug 2007 20:08:22 -0000 1.72.2.80 @@ -250,8 +250,9 @@ $fields["data"][$i]["value"] = ''; $ins_fields["data"][$i]["value"] = ''; if (isset($_REQUEST["$ins_id" . "Day"])) { - $ins_fields["data"][$i]["value"] = mktime($_REQUEST["$ins_id" . "Hour"], $_REQUEST["$ins_id" . "Minute"], - 0, $_REQUEST["$ins_id" . "Month"], $_REQUEST["$ins_id" . "Day"], $_REQUEST["$ins_id" . "Year"]); + $dc = $tikilib->get_date_converter($user); + $ins_fields["data"][$i]["value"] = $dc->getServerDateFromDisplayDate(mktime($_REQUEST["$ins_id" . "Hour"], $_REQUEST["$ins_id" . "Minute"], + 0, $_REQUEST["$ins_id" . "Month"], $_REQUEST["$ins_id" . "Day"], $_REQUEST["$ins_id" . "Year"])); } else { $ins_fields["data"][$i]["value"] = date("U"); } |