Fixed edge cases for decoding of n-dimensional datetimes