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

commit 46f27101dec9412952ff8d7f3a6f1a50de6da769
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..8539f37 100755
--- a/scripts/cancel_github_workflows.py
+++ b/scripts/cancel_github_workflows.py
@@ -3,6 +3,7 @@
 Manually GitHub workflow runs
 """
 import os
+from dateutil import parser
 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:   {parser.parse(commit["timestamp"]).astimezone(tz=None).strftime("%a, 
%d %b %Y %H:%M:%S")}
 
     {indented_message}
 """

Reply via email to