diff options
Diffstat (limited to 'admin')
-rw-r--r-- | admin/picture_modify.php | 3 | ||||
-rw-r--r-- | admin/remote_site.php | 3 | ||||
-rw-r--r-- | admin/update.php | 4 |
3 files changed, 7 insertions, 3 deletions
diff --git a/admin/picture_modify.php b/admin/picture_modify.php index 64d6cf04b..532f5aeee 100644 --- a/admin/picture_modify.php +++ b/admin/picture_modify.php @@ -180,7 +180,8 @@ $template->assign_vars(array( 'NAME_IMG'=>isset($_POST['name'])?$_POST['name']:@$row['name'], 'SIZE_IMG'=>@$row['width'].' * '.@$row['height'], 'FILESIZE_IMG'=>@$row['filesize'].' KB', - 'REGISTRATION_DATE_IMG'=> format_date($row['date_available']), + 'REGISTRATION_DATE_IMG' + => format_date($row['date_available'], 'mysql_datetime', true), 'AUTHOR_IMG'=>isset($_POST['author'])?$_POST['author']:@$row['author'], 'CREATION_DATE_IMG'=>$date, 'KEYWORDS_IMG'=>isset($_POST['keywords'])?$_POST['keywords']:@$row['keywords'], diff --git a/admin/remote_site.php b/admin/remote_site.php index ba8dc67ce..774358ddf 100644 --- a/admin/remote_site.php +++ b/admin/remote_site.php @@ -31,7 +31,8 @@ if (!defined('PHPWG_ROOT_PATH')) } include_once(PHPWG_ROOT_PATH.'admin/include/isadmin.inc.php'); -define('CURRENT_DATE', date('Y-m-d')); +list($dbnow) = mysql_fetch_row(pwg_query('SELECT NOW();')); +define('CURRENT_DATE', $dbnow); // +-----------------------------------------------------------------------+ // | functions | // +-----------------------------------------------------------------------+ diff --git a/admin/update.php b/admin/update.php index bfc3236fc..b0e26a3f7 100644 --- a/admin/update.php +++ b/admin/update.php @@ -31,7 +31,9 @@ if (!defined('PHPWG_ROOT_PATH')) } include_once( PHPWG_ROOT_PATH.'admin/include/isadmin.inc.php'); -define('CURRENT_DATE', date('Y-m-d')); +list($dbnow) = mysql_fetch_row(pwg_query('SELECT NOW();')); +define('CURRENT_DATE', $dbnow); + $error_labels = array('PWG-UPDATE-1' => $lang['update_wrong_dirname_short'], 'PWG-UPDATE-2' => $lang['update_missing_tn_short']); $errors = array(); |