bastibe / org-journal

A simple org-mode based journaling mode
BSD 3-Clause "New" or "Revised" License
1.23k stars 122 forks source link

Created property timestamp format "%Y%m%d" doesn’t match CREATED property value (nil) #391

Closed baogiadoan closed 2 years ago

baogiadoan commented 2 years ago

Describe the bug A clear and concise description of what the bug is.

When I create a new entry, this error pops up and cannot create a new date entry

Error (after-save-hook): Error running hook "org-journal-after-save-hook" because: (user-error Created property timestamp format "%Y%m%d" doesn’t match CREATED property value (nil) from entry at line: Line 211) Disable showing Disable logging

To Reproduce Steps to reproduce the behavior:

Run org-journal-new-entry

Expected behavior A clear and concise description of what you expected to happen.

A new entry of Org-journal

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Your Emacs Configuration The part relevant to org-journal.

I use Doom Emacs config:

  (use-package! org-journal
    :ensure t
    :defer t
    :init
    :config
    (setq org-journal-dir "~/org/journal/"
          org-journal-file-format "%Y.org"
          org-journal-file-type 'yearly
          org-journal-enable-agenda-integration t
          org-journal-date-format "%A, %d/%m/%y"
     ))
baogiadoan commented 2 years ago

I found out that the problem is due to there a redundant of CREATED within my journal entries, removing that solved the problem.