Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Fix invalid timestamp format #56

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tap_snowflake/sync_strategies/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def row_to_singer_record(catalog_entry, version, row, columns, time_extracted):
for idx, elem in enumerate(row):
property_type = catalog_entry.schema.properties[columns[idx]].type
if isinstance(elem, datetime.datetime):
row_to_persist += (elem.isoformat() + '+00:00',)
row_to_persist += (elem.isoformat() + ('' if elem.tzinfo else '+00:00'),)

elif isinstance(elem, datetime.date):
row_to_persist += (elem.isoformat() + 'T00:00:00+00:00',)
Expand Down