Skip to content

Commit 8d02aaf

Browse files
romanwozniakfeast-ci-bot
authored andcommitted
- fix the issue with a datetime format during the import via python sdk (#217)
1 parent 4e2b295 commit 8d02aaf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sdk/python/feast/sdk/importer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,8 @@ def dump(self, path):
291291
def _convert_timestamp(df, timestamp_col):
292292
"""Converts the given df's timestamp column to ISO8601 format
293293
"""
294-
df[timestamp_col] = pd.to_datetime(df[timestamp_col]).dt \
295-
.strftime("%Y-%m-%dT%H:%M:%S%zZ")
294+
df[timestamp_col] = pd.to_datetime(df[timestamp_col]) \
295+
.apply(lambda dt: dt.isoformat())
296296

297297

298298
def _properties(source, size, require_staging, remote):

0 commit comments

Comments
 (0)