Extracted _get_dt_arrays() for code reuse
Calculate new fallback datetime based on the "flat" timebase

In cases when the time seems OK at the beginning of the recording but
does not move, we can use it as the fallback datetime, but avoid using
the segment's timebase calculated from it.
Whitespace fixes