restore correct c# datetime conversion