public function getDay($dayOffset, &$start, &$end, $localTimezone = "America/Chicago") { // get the date/time in local timezone $today = new Time("", $localTimezone); $today->addDays($dayOffset); $this->getDayUtc($today->format("Y/m/d"), $start, $end, $localTimezone); }