Fixed the creation of the DateInterval object