bastibe / org-journal

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

org-time-stamp gets incremented to next day if TODO is carried over #385

Open guylyons opened 2 years ago

guylyons commented 2 years ago

Hi,

I'm not sure if this is actually a bug or I'm not understanding expected behavior.

When I have a TODO created in my Journal, and I insert a org-time-stamp, such as: <2022-03-29 Tue>

If the item is not completed, and carries over to the next day, the timestamp also gets updated. I like using these to keep date-accurate notes of when I did certain things. Is there a way to stop these form being incremented to the next day, or again, am I misunderstanding the expected behavior of org-journal ?

Thanks, and I love using org-journal.

OS: Latest macOS Version: Emacs 27.2

bastibe commented 2 years ago

Are you using daily files, or weekly/monthly?

Could you post an example of one of those journal entries with a timestamp that trigger the issue?

guylyons commented 2 years ago

Sure. It's daily entries, here's an example of one I carried over from yesterday, but the timestamp got bumped to today's date:

Screen Shot 2022-03-29 at 4 29 06 PM

The timestamp right after logbook was Monday, but after it carries over to the next day, it increments or updates it, it seems.

bastibe commented 2 years ago

I wonder if the carryover logic just looks for date-like strings in the carryover item, and changes them to the current date. The carryover code is not too complicated, though.

If you find the cause, I'd be grateful for a pull request!

guylyons commented 2 years ago

Absolutely, I'll debug and see what I can find. Thanks!

allenluce commented 1 year ago

I've also run into this, it seems that all inserted timestamps in the entire daily journal file regardless of where they are get updated when carried over.