From 017b2c8ee0f7b02f38bf35603d5d1c9d253c6d1b Mon Sep 17 00:00:00 2001 From: sidpremkumar Date: Jul 16 2019 19:29:14 +0000 Subject: [PATCH 1/2] Changing from utc epoch, to just from epoch --- diff --git a/sync2jira/intermediary.py b/sync2jira/intermediary.py index 08d5ff4..3abbe81 100644 --- a/sync2jira/intermediary.py +++ b/sync2jira/intermediary.py @@ -60,7 +60,7 @@ class Issue(object): continue # Else add the comment # Convert the date to datetime - comment['date_created'] = datetime.utcfromtimestamp(float(comment['date_created'])) + comment['date_created'] = datetime.fromtimestamp(float(comment['date_created'])) comments.append({ 'author': comment['user']['name'], 'body': comment['comment'], From 63e24376e284e21b4fdfd61d875f4bb73978094f Mon Sep 17 00:00:00 2001 From: sidpremkumar Date: Jul 16 2019 19:36:58 +0000 Subject: [PATCH 2/2] Changing year to date in comment --- diff --git a/sync2jira/downstream.py b/sync2jira/downstream.py index 042e7d9..46fe62b 100644 --- a/sync2jira/downstream.py +++ b/sync2jira/downstream.py @@ -51,7 +51,7 @@ def _comment_format(comment): Returns: Response (str): Comments formatted """ - pretty_date = comment['date_created'].strftime("%a %b %y - %H:%M") + pretty_date = comment['date_created'].strftime("%a %b %d - %-I:%M%p") return "[%s] Upstream, %s wrote [%s]:\n\n{quote}\n%s\n{quote}" % ( comment['id'], comment['author'],