Fixes conversion to DateTimeOffset