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