From: <sy...@us...> - 2007-07-16 21:22:21
|
Update of /cvsroot/tikiwiki/tiki In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv8977 Modified Files: Tag: BRANCH-1-9 tiki-edit_programmed_content.php Log Message: [FIX]time: again this time shifting on some servers Index: tiki-edit_programmed_content.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/tiki-edit_programmed_content.php,v retrieving revision 1.12.2.7 retrieving revision 1.12.2.8 diff -u -d -r1.12.2.7 -r1.12.2.8 --- tiki-edit_programmed_content.php 2 Mar 2007 12:23:24 -0000 1.12.2.7 +++ tiki-edit_programmed_content.php 16 Jul 2007 21:22:22 -0000 1.12.2.8 @@ -58,8 +58,9 @@ if (isset($_REQUEST["save"])) { check_ticket('edit-programmed-content'); - $publishDate = mktime($_REQUEST["Time_Hour"], $_REQUEST["Time_Minute"], - 0, $_REQUEST["Date_Month"], $_REQUEST["Date_Day"], $_REQUEST["Date_Year"]); + $dc = $tikilib->get_date_converter($user); + $publishDate = $dc->getServerDateFromDisplayDate(mktime($_REQUEST["Time_Hour"], $_REQUEST["Time_Minute"], + 0, $_REQUEST["Date_Month"], $_REQUEST["Date_Day"], $_REQUEST["Date_Year"])); $id = $dcslib->replace_programmed_content($_REQUEST["pId"], $_REQUEST["contentId"], $publishDate, $_REQUEST["data"]); $smarty->assign('data', $_REQUEST["data"]); |