Solved: 3 Years, 7 Months, 3 Weeks ago $mybb->settings['dateformat'] NOT working properly.
#4
Solved: 3 Years, 7 Months, 3 Weeks ago
I don't have any settings set up for my accounts date/time besides a timezone selected. My current time on the board shows like "02-21-2018, 11:21 AM" throughout EVERYTHING BUT THIS PAGE.

$query = $db->query("
		SELECT *
		FROM ".TABLE_PREFIX."users
		WHERE ".TABLE_PREFIX."users.usergroup IN (4,6,14,17)
		ORDER BY username ASC
	");
while($users = $db->fetch_array($query))    {
	if($users['away'] == '1')	{
		$users['username'] = format_name($users['username'], $users['usergroup'], $users['displaygroup']);
		$users['awaydate'] = my_date($mybb->settings['dateformat'], $users['awaydate']);
		$returndate = $users['returndate'];
		$awayreason = $users['awayreason'];
		eval("\$absentmember .= \"".$templates->get("absentmember_entry")."\";");
	}
}

I tried changing returndate to follow suit with awaydate like this:
$returndate = my_date($mybb->settings['dateformat'], $users['returndate']);

BUT THEN, if a user did not select a return date it now shows 12-31-1969 instead of Unknown
> SELECT finger FROM hand WHERE id='3'
Reply


Messages In This Thread
RE: $mybb->settings['dateformat'] NOT working properly. - by isoldehn - 2018-02-21, 05:46 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)