Closed dchrzanowski closed 4 years ago
hi, @dchrzanowski. Could you provide what is the Emacs version you are using? And just to be sure, if you remove the json file and start over with a clean state, this still happens?
(format-time-string "%Y-%m-%dT%H:%M:%S" t)
throws an error for me. I'm not yet sure from where t
comes.
Probably it comes from
:snooze (funcall fmt-time (plist-get pomidor :snooze))
As far as I can see, :snooze
is bool
so it shoudn't be formated with fmt-time. @wandersoncferreira will you take a look?
Yes, I can submit a PR. Can you confirm for me something else about a related issue? The function time-equal-p
does not seems to be included in Emacs 26. At some point the time-less-p
was changed to time-equal-p
and probably this exist in Emacs 27.
At some point the
time-less-p
was changed totime-equal-p
and probably this exist in Emacs 27.
Well, both functions exist in Emacs 27 as they do different things. My bet is time-equal-p
is here because it takes into consideration various time formats, but I'm guessing here.
Please reopen if needed
hi, @dchrzanowski. Could you provide what is the Emacs version you are using? And just to be sure, if you remove the json file and start over with a clean state, this still happens?
Sorry @wandersoncferreira I probably should have said that I'm using emacs 28, 28.0.50 to be exact. It is important info after all.
Bug:
Calling the
(pomidor-save-session)
function just after the first pomidor is started works fine and a json file is produced, however, after a creating a break or a creating a hold the(pomidor-save-session)
function throws an"Invalid time specification"
error: