diff --git a/trello/card.py b/trello/card.py index b934a5da..e6abe3d7 100644 --- a/trello/card.py +++ b/trello/card.py @@ -3,7 +3,7 @@ from dateutil import parser as dateparser from trello.checklist import Checklist from trello.label import Label -from trello.organization import Organization +from trello.configuration import Configuration import datetime import pytz @@ -411,7 +411,7 @@ def create_date(self): test for the condition. """ if not hasattr(self, "creation_date"): - localtz = pytz.timezone(Organization.TIMEZONE) + localtz = pytz.timezone(Configuration.TIMEZONE) self.creation_date = localtz.localize(datetime.datetime.fromtimestamp(int(self.id[0: 8], 16))) return self.creation_date diff --git a/trello/configuration.py b/trello/configuration.py new file mode 100644 index 00000000..3af4dfe4 --- /dev/null +++ b/trello/configuration.py @@ -0,0 +1,7 @@ +# -*- coding: utf-8 -*- + +# Contains all the common configuration preferences +# Only timezone by now +class Configuration(object): + # Timezone of the team + TIMEZONE = None