#80 Comment Restricting
Merged 4 years ago by sidpremkumar. Opened 4 years ago by sidpremkumar.
sidpremkumar/sync-to-jira fixing-date-in-comments  into  develop

file modified
+1 -1
@@ -51,7 +51,7 @@ 

      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'],

file modified
+1 -1
@@ -60,7 +60,7 @@ 

                  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'],

  • Pagure utc from timestamp -> Pagure from timestamp
  • Comment format: Day of week Month Year - Hour - Min -> Day of week Month Day - Hour:MinAM/PM

Pull-Request has been merged by sidpremkumar

4 years ago