DateTime constructor fix