Quote
Falcon wrote:
After you selected the date, did you try to press the ">>" button then save ?
Quote
mpkossen wrote:
Does it always display GMT? Did you try re-uploading all files?
Quote
MTGap wrote:
Strange thing is that when you apply the offset the time changes when you look in the drop down menus to the correct time, just no where else when you save.
// Format the date & time accordingly
function showdate($format, $val) {
global $settings, $userdata;
if (isset($userdata['user_offset'])) {
$offset = $userdata['user_offset'];
} else {
$offset = $settings['timeoffset'];
}
if ($format == "shortdate" || $format == "longdate" || $format == "forumdate" || $format == "newsdate") {
return strftime($settings[$format], $val + ($offset * 3600));
} else {
return strftime($format, $val + ($offset * 3600));
}
}
if (isset($userdata['user_offset'])) {
if ($userdata['user_offset'] <> 0) {
$user_field_dbinfo = "";
$user_field_dbinfo = "char(5) NOT NULL DEFAULT '0'";
if ($userdata['user_offset'] <> 0) {
if (isset($userdata['user_offset'])) {
$offset_list = "";
for ($i = -13; $i < 17; $i++) {
if ($i > 0) { $offset = "+".$i; } else { $offset = $i; }
$offset_list .= "<option".($offset == $user_data['user_offset'] ? " selected='selected'" : "").">".$offset."</option>\n";
}
Quote
WEC wrote:
If that was the intention, then you need to edit the following:
1.
In user_offset_include_var.php find:Code Download source$user_field_dbinfo = "";
Replace with:Code Download source$user_field_dbinfo = "char(5) NOT NULL DEFAULT '0'";
2.
In the users table, delete the core field user_offset
3.
In cookie_include.php find:Code Download sourceif ($userdata['user_offset'] <> 0) {
Replace with:Code Download sourceif (isset($userdata['user_offset'])) {
4.
In edit_profile.php find and delete:Code Download source$offset_list = "";
for ($i = -13; $i < 17; $i++) {
if ($i > 0) { $offset = "+".$i; } else { $offset = $i; }
$offset_list .= "<option".($offset == $user_data['user_offset'] ? " selected='selected'" : "").">".$offset."</option>\n";
}
Category Forum
System Administration - 8Labels
None yet
Statistics
8 participants
Notifications
You are not receiving notifications from this thread.
Related Questions