Update anban, kanban (~3)
This commit is contained in:
@@ -41,7 +41,7 @@ def add_task(column_id, title, description="", priority="medium"):
|
||||
"id": get_next_id(data),
|
||||
"title": title,
|
||||
"description": description,
|
||||
"created": datetime.now().strftime("%Y-%m-%d"),
|
||||
"created": datetime.utcnow().strftime("%Y-%m-%dT%H:%M:%SZ"),
|
||||
"priority": priority
|
||||
}
|
||||
|
||||
@@ -74,7 +74,7 @@ def move_task(task_id, to_column):
|
||||
|
||||
# Add to new column
|
||||
if to_column == 'done':
|
||||
task['completed'] = datetime.now().strftime("%Y-%m-%d")
|
||||
task['completed'] = datetime.utcnow().strftime("%Y-%m-%dT%H:%M:%SZ")
|
||||
|
||||
for col in data['columns']:
|
||||
if col['id'] == to_column:
|
||||
|
||||
Reference in New Issue
Block a user