2014-07-11, 03:29 PM
2014-07-12, 04:09 AM
Time used by your forum can be set in Admin CP->Configuration->Settings->Date and Time Formats
By default, log reports in Admin CP are using server time and there is no option in MyBB to change it. If you really want as these logs to use a different time, you can edit this core file:
ADMIN_DIR (your administration folder from your MyBB root)/inc/functions.php.
There is a function called "log_admin_action()".
Change this part:
By default, log reports in Admin CP are using server time and there is no option in MyBB to change it. If you really want as these logs to use a different time, you can edit this core file:
ADMIN_DIR (your administration folder from your MyBB root)/inc/functions.php.
There is a function called "log_admin_action()".
Change this part:
$log_entry = array(
"uid" => $mybb->user['uid'],
"ipaddress" => $db->escape_string(get_ip()),
"dateline" => TIME_NOW,
"module" => $db->escape_string($mybb->input['module']),
"action" => $db->escape_string($mybb->input['action']),
"data" => $db->escape_string(@serialize($data))
);
with: $log_entry = array(
"uid" => $mybb->user['uid'],
"ipaddress" => $db->escape_string(get_ip()),
"dateline" => TIME_NOW-18000,
"module" => $db->escape_string($mybb->input['module']),
"action" => $db->escape_string($mybb->input['action']),
"data" => $db->escape_string(@serialize($data))
);
where "-18000" are seconds and are equals with -5 hours (for example).2014-07-20, 10:36 PM
Thank you so much !!