diff --git a/flowapp/models.py b/flowapp/models.py index 09304bc..03c1963 100644 --- a/flowapp/models.py +++ b/flowapp/models.py @@ -273,7 +273,7 @@ def to_dict(self, prefered_format="yearfirst"): """ if prefered_format == "timestamp": expires = int(datetime.timestamp(self.expires)) - created = int(datetime.timestamp(self.expires)) + created = int(datetime.timestamp(self.created)) else: expires = utils.datetime_to_webpicker(self.expires, prefered_format) created = utils.datetime_to_webpicker(self.created, prefered_format) @@ -422,7 +422,7 @@ def to_dict(self, prefered_format="yearfirst"): """ if prefered_format == "timestamp": expires = int(datetime.timestamp(self.expires)) - created = int(datetime.timestamp(self.expires)) + created = int(datetime.timestamp(self.created)) else: expires = utils.datetime_to_webpicker(self.expires, prefered_format) created = utils.datetime_to_webpicker(self.created, prefered_format) @@ -549,7 +549,7 @@ def to_dict(self, prefered_format="yearfirst"): """ if prefered_format == "timestamp": expires = int(datetime.timestamp(self.expires)) - created = int(datetime.timestamp(self.expires)) + created = int(datetime.timestamp(self.created)) else: expires = utils.datetime_to_webpicker(self.expires, prefered_format) created = utils.datetime_to_webpicker(self.created, prefered_format)