function gettime($name, $now = NULL) { $date = getgpc($name); if (!$date || !isDateTime($date['date'] . ' ' . $date['time'])) { return $now ? $now : time(); } else { return strtotime($date['date'] . ' ' . $date['time']); } }
function fetch_assoc() { $row = $this->resultSet->fetch_assoc(); if (is_array($row) && isset($_SESSION['sessionTimeZone'])) { foreach ($row as $key => $value) { // check if value matches datetime format. Convert to local timezone if (isDateTime($value)) { $row[$key] = localizeDate($value, $_SESSION['sessionTimeZone']); } } } return $row; }