Skip to content

Commit

Permalink
Edit Attachments.date return python datetime object
Browse files Browse the repository at this point in the history
  • Loading branch information
sgaynetdinov committed Nov 11, 2016
1 parent 1d02b9e commit 7e13e51
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion trello/attachments.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
from dateutil import parser as dateparser


class Attachments(object):
Expand All @@ -8,7 +9,7 @@ class Attachments(object):
def __init__(self, id, bytes, date, edge_color, idMember, is_upload, mime_type, name, previews, url):
self.id = id
self.bytes = bytes
self.date = date
self.date = dateparser.parse(date)
self.edge_color = edge_color
self.idMember = idMember
self.is_upload = is_upload
Expand Down

0 comments on commit 7e13e51

Please sign in to comment.