/** * Get the offset between the current user's time zone and Rhymix's internal time zone. * * @return int */ function zgap($timestamp = null) { $current_user_timezone = Rhymix\Framework\DateTime::getTimezoneForCurrentUser(); return Rhymix\Framework\DateTime::getTimezoneOffsetFromInternal($current_user_timezone, $timestamp); }