From 59fede1f945e64bccabd8756f6620596187f3906 Mon Sep 17 00:00:00 2001 From: Kyle Allan Date: Mon, 12 Feb 2018 09:51:15 -0500 Subject: [PATCH] fix functions on end_date / start_date --- tap_salesforce/salesforce/rest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tap_salesforce/salesforce/rest.py b/tap_salesforce/salesforce/rest.py index e6881922..55f19330 100644 --- a/tap_salesforce/salesforce/rest.py +++ b/tap_salesforce/salesforce/rest.py @@ -77,8 +77,8 @@ def _query_recur( raise TapSalesforceException( "Attempting to query by 0 day range, this would cause infinite looping.") - query = self.sf._build_query_string(catalog_entry, start_date.format( - "%Y-%m-%dT%H:%M:%SZ"), end_date.format("%Y-%m-%dT%H:%M:%SZ")) + query = self.sf._build_query_string(catalog_entry, singer_utils.strftime(start_date), + singer_utils.strftime(end_date)) for record in self._query_recur( query, catalog_entry,