This is an automated email from the ASF dual-hosted git repository.

yjc pushed a commit to branch manage-github-workflow
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/manage-github-workflow by this 
push:
     new d4e3b22  format datetime
d4e3b22 is described below

commit d4e3b227ab9bb5d7a9b0b151d13f6bc690a02088
Author: Jesse Yang <[email protected]>
AuthorDate: Fri Dec 4 20:08:31 2020 -0800

    format datetime
---
 scripts/cancel_github_workflows.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/scripts/cancel_github_workflows.py 
b/scripts/cancel_github_workflows.py
index 5028728..8d6b990 100755
--- a/scripts/cancel_github_workflows.py
+++ b/scripts/cancel_github_workflows.py
@@ -3,6 +3,7 @@
 Manually GitHub workflow runs
 """
 import os
+from datetime import datetime
 from typing import Iterable, List, Optional, Union
 
 import click
@@ -62,7 +63,7 @@ def print_commit(commit):
         f"""
 HEAD {commit["id"]}
 Author: {commit["author"]["name"]} <{commit["author"]["email"]}>
-Date:   {commit["timestamp"]}
+Date:   {datetime.fromisoformat(commit["timestamp"]).strftime("%a, %d %b %Y 
%H:%M:%S")}
 
     {indented_message}
 """

Reply via email to