Commit ec364b61 authored by Tijmen de Mes's avatar Tijmen de Mes

Use ISOtimestamp in added messages

parent 7104305f
...@@ -315,7 +315,7 @@ class ChatMessage(ChatContent): ...@@ -315,7 +315,7 @@ class ChatMessage(ChatContent):
self.direction = direction self.direction = direction
self.id = str(uuid.uuid4()) if id is None else id self.id = str(uuid.uuid4()) if id is None else id
self.status = '' self.status = ''
self.timestamp = timestamp if timestamp is not None else datetime.now() self.timestamp = timestamp if timestamp is not None else ISOTimestamp.now()
def is_related_to(self, other): def is_related_to(self, other):
return super(ChatMessage, self).is_related_to(other) and self.sender == other.sender and self.direction == other.direction return super(ChatMessage, self).is_related_to(other) and self.sender == other.sender and self.direction == other.direction
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment