Skip to content

Commit

Permalink
Make code work with newer DateTime
Browse files Browse the repository at this point in the history
  • Loading branch information
gbastien committed Oct 26, 2019
1 parent ae7ce00 commit 6cccc12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/collective/messagesviewlet/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def start_index(obj):
@indexer(IMessage)
def end_index(obj):
if obj.end is None:
return DateTime(2099, 01, 01)
return DateTime('2099/01/01')
else:
return add_timezone(obj.end)

Expand Down

0 comments on commit 6cccc12

Please sign in to comment.