We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c529547 commit fae5092Copy full SHA for fae5092
1 file changed
sdks/python/apache_beam/yaml/yaml_mapping.py
@@ -228,6 +228,8 @@ def js_to_py(obj):
228
return [js_to_py(v) for v in obj]
229
elif isinstance(obj, str):
230
try:
231
+ if obj.endswith('Z'):
232
+ return datetime.datetime.fromisoformat(obj[:-1] + '+00:00')
233
return datetime.datetime.fromisoformat(obj)
234
except ValueError:
235
return obj
0 commit comments