diff --git a/jrnl/Entry.py b/jrnl/Entry.py index 66fb63a4..8f3663ab 100644 --- a/jrnl/Entry.py +++ b/jrnl/Entry.py @@ -3,11 +3,12 @@ import re import textwrap +from datetime import datetime class Entry: def __init__(self, journal, date=None, title="", body=""): self.journal = journal # Reference to journal mainly to access it's config - self.date = date + self.date = date or datetime.now() self.title = title.strip() self.body = body.strip() self.tags = self.parse_tags() @@ -79,4 +80,4 @@ class Entry: title=self.title, body=body, space=space - ) \ No newline at end of file + )