Changes two datetime variables to type numeric; fixes #1054