emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [BUG] org-agenda thinks timestamps after 23:00 correspond to the nex


From: Max Nikulin
Subject: Re: [BUG] org-agenda thinks timestamps after 23:00 correspond to the next day [9.5.2 (release_9.5.2-25-gaf6f12 @ /home/ignacio/repos/emacs/lisp/org/)]
Date: Thu, 31 Mar 2022 19:38:51 +0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0

On 29/03/2022 20:09, Ignacio Casso wrote:

Let's consider the timestamp "<2022-03-29 mar 23:00>" as an example:

1) (org-parse-time-string "<2022-03-29 mar 23:00>") returns (0 0 23 29 3
2022 nil nil nil).

2) (encode-time '(0 0 23 29 3 2022 nil nil nil)) returns '(25155 29520)
in Emacs 27, but (25155 33120) in Emacs 29

Ubuntu-20.04 LTS has emacs-26.3, so...

Could you, please, try

(encode-time '(0 0 23 29 3 2022 nil -1 nil))
                                    ^^^

Accordingly to
"TIME is a list (SECOND MINUTE HOUR DAY MONTH YEAR IGNORED DST ZONE)."
it should be daylight saving time flag and -1 means "guess" unlike nil that tells "no DST".

Emacs-26 does not support DST:
    (encode-time SECOND MINUTE HOUR DAY MONTH YEAR &optional ZONE)
Current master HEAD:
    (encode-time TIME &rest OBSOLESCENT-ARGUMENTS)

If my guess is right, `org-parse-time-string' should add -1 instead of nil in that position.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]