[Top][All Lists]

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

org-timestamp-change and timezone

From: Cédric Chépied
Subject: org-timestamp-change and timezone
Date: Tue, 19 Apr 2016 08:22:49 +0200
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (Gojō) APEL/10.8 EasyPG/1.0.0 Emacs/25.1.50 (x86_64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO)


Since a couple of days I can't use org-timestamp-change anymore, I got this

setq: Invalid time zone specification: (nil nil nil)

I "fixed" it with this patch but I don't know what I'm doing cause my timezone
is always (nil nil nil) and the encode-time function only wants 'nil'. I hope
this will help people to fix the problem.

Cédric Chépied

>From 5ce4a6e5ed72bf5dd8ec6517119fc03c612e2cfa Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=A9dric=20Ch=C3=A9pied?= <address@hidden>
Date: Tue, 19 Apr 2016 08:12:40 +0200
Subject: [PATCH] Fix timezone in org-timestamp-change

 lisp/org/org.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/org/org.el b/lisp/org/org.el
index 3abf627..0e312b2 100644
--- a/lisp/org/org.el
+++ b/lisp/org/org.el
@@ -17460,7 +17460,7 @@ When SUPPRESS-TMP-DELAY is non-nil, suppress delays 
like \"--2d\"."
                         (+ (if (eq org-ts-what 'day) n 0)    (nth 3 time0))
                         (+ (if (eq org-ts-what 'month) n 0)  (nth 4 time0))
                         (+ (if (eq org-ts-what 'year) n 0)   (nth 5 time0))
-                        (nthcdr 6 time0)))
+                        (nth 6 time0)))
       (when (and (member org-ts-what '(hour minute))
                 (string-match "-\\([012][0-9]\\):\\([0-5][0-9]\\)" extra))

reply via email to

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