Fix incorrect construction of 'datetime.datetime' object.