[Phpbbproject-svn] SF.net SVN: phpbbproject:[290] trunk/phpbb3/root
phpBB download manager, mainly aimed at MOD authors
Status: Planning
Brought to you by:
lord_le_brand
From: <lor...@us...> - 2008-08-05 13:49:06
|
Revision: 290 http://phpbbproject.svn.sourceforge.net/phpbbproject/?rev=290&view=rev Author: lord_le_brand Date: 2008-08-05 13:49:14 +0000 (Tue, 05 Aug 2008) Log Message: ----------- GMT times Modified Paths: -------------- trunk/phpbb3/root/includes/sources_project/create_project.php trunk/phpbb3/root/includes/sources_project/download_project.php trunk/phpbb3/root/includes/sources_project/functions_create.php trunk/phpbb3/root/project_install/install_install.php Modified: trunk/phpbb3/root/includes/sources_project/create_project.php =================================================================== --- trunk/phpbb3/root/includes/sources_project/create_project.php 2008-08-02 18:14:00 UTC (rev 289) +++ trunk/phpbb3/root/includes/sources_project/create_project.php 2008-08-05 13:49:14 UTC (rev 290) @@ -39,8 +39,6 @@ { global $auth, $user; - /** - * @todo Rewrite this when auth class is extended if (!$auth->acl_get('p_add_project')) { $this->error = $user->lang['PROJECT_NOT_AUTH_CREATE']; @@ -51,10 +49,9 @@ $this->error = $user->lang['PROJECT_NOT_AUTH_CAT']; return; } - */ // Time & date of project creation - $this->current_time = time(); + $this->current_time = gmmktime(0, 0, 0); $this->authors = $authors; $this->set_data($data); Modified: trunk/phpbb3/root/includes/sources_project/download_project.php =================================================================== --- trunk/phpbb3/root/includes/sources_project/download_project.php 2008-08-02 18:14:00 UTC (rev 289) +++ trunk/phpbb3/root/includes/sources_project/download_project.php 2008-08-05 13:49:14 UTC (rev 290) @@ -244,7 +244,7 @@ foreach ($mod_history as $entry) { $this->mod_history[] = array( - 'time' => date('Y-m-d', $entry['version_time']), + 'time' => gmdate('Y-m-d', $entry['version_time']), 'version' => "{$entry['version_major']}.{$entry['version_minor']}.{$entry['version_revision']}{$entry['version_release']}", 'version_p' => array($entry['version_major'], $entry['version_minor'], $entry['version_revision'], $entry['version_release']), 'stage' => ($entry['version_stage']) ? $stages_ary[$entry['version_stage']] : false, Modified: trunk/phpbb3/root/includes/sources_project/functions_create.php =================================================================== --- trunk/phpbb3/root/includes/sources_project/functions_create.php 2008-08-02 18:14:00 UTC (rev 289) +++ trunk/phpbb3/root/includes/sources_project/functions_create.php 2008-08-05 13:49:14 UTC (rev 290) @@ -246,7 +246,7 @@ for ($i = 0, $size = sizeof($history); $i < $size; $i++) { $post_tpl->assign_block_vars('history', array( - 'DATE' => date('Y-m-d', $history[$i]['version_time']), + 'DATE' => gmdate('Y-m-d', $history[$i]['version_time']), 'VERSION' => "{$history[$i]['version_major']}.{$history[$i]['version_minor']}.{$history[$i]['version_revision']}{$history[$i]['version_release']}", 'CHANGELOG' => $history[$i]['version_changelog'], @@ -325,7 +325,7 @@ for ($i = 0, $size = sizeof($history); $i < $size; $i++) { $post_tpl->assign_block_vars('history', array( - 'DATE' => date('Y-m-d', $history[$i]['version_time']), + 'DATE' => gmdate('Y-m-d', $history[$i]['version_time']), 'VERSION' => "{$history[$i]['version_major']}.{$history[$i]['version_minor']}.{$history[$i]['version_revision']}{$history[$i]['version_release']}", 'CHANGELOG' => $history[$i]['version_changelog'], Modified: trunk/phpbb3/root/project_install/install_install.php =================================================================== --- trunk/phpbb3/root/project_install/install_install.php 2008-08-02 18:14:00 UTC (rev 289) +++ trunk/phpbb3/root/project_install/install_install.php 2008-08-05 13:49:14 UTC (rev 290) @@ -147,7 +147,7 @@ trigger_error($user->lang['NO_GROUP'], E_USER_WARNING); } - $current_time = time(); + $current_time = gmmktime(); $db->sql_transaction('begin'); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |