BUG: bug in non-evently divisible offsets when resampling (e.g. '7s') (GH8371)