datetime construction fixed