add date conversion logic, setng average session time calculation option