fn read_naive_date(data: &[u8], offset: &mut usize) -> NaiveDate