Skip to content

Commit 76b5cf8

Browse files
committed
Looks like some dependency made the datetime->str format to change.
Without this change tests are failing because timezone info is being added to Created field in projects list table (cherry picked from commit 138ba06)
1 parent da8719f commit 76b5cf8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gradient/commands/projects.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def _get_instances(self, kwargs):
3737
def _get_table_data(self, objects):
3838
data = [("ID", "Name", "Repository", "Created")]
3939
for obj in objects:
40-
data.append((obj.id, obj.name, obj.repository_url, obj.created))
40+
created_str = obj.created.strftime("%Y-%m-%d %H:%M:%S.%f")
41+
data.append((obj.id, obj.name, obj.repository_url, created_str))
4142

4243
return data

0 commit comments

Comments
 (0)