From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?C=E9dric_Ch=E9pied?= Newsgroups: gmane.emacs.devel Subject: org-timestamp-change and timezone Date: Tue, 19 Apr 2016 08:22:49 +0200 Message-ID: <5715cebb.58811c0a.26051.3c6b@mx.google.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1461046989 477 80.91.229.3 (19 Apr 2016 06:23:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Apr 2016 06:23:09 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 19 08:23:02 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1asP3t-00041u-Vz for ged-emacs-devel@m.gmane.org; Tue, 19 Apr 2016 08:23:02 +0200 Original-Received: from localhost ([::1]:52054 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1asP3t-0002NW-Ao for ged-emacs-devel@m.gmane.org; Tue, 19 Apr 2016 02:23:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52778) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1asP3p-0002L6-PA for emacs-devel@gnu.org; Tue, 19 Apr 2016 02:22:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1asP3l-0005E3-JJ for emacs-devel@gnu.org; Tue, 19 Apr 2016 02:22:57 -0400 Original-Received: from mail-wm0-x22a.google.com ([2a00:1450:400c:c09::22a]:36977) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1asP3l-0005Dx-CP for emacs-devel@gnu.org; Tue, 19 Apr 2016 02:22:53 -0400 Original-Received: by mail-wm0-x22a.google.com with SMTP id n3so11429124wmn.0 for ; Mon, 18 Apr 2016 23:22:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:to:subject:user-agent:mime-version :content-transfer-encoding; bh=c4OQR5bk4TCgqXNynJQoYGCmrA6DJ+iynZLDy9nLJAE=; b=iw1XdPlqV8qo63u4LV3WqAP+IoojBkmr7RR5IVFKxLyopUj71YJtfDdVIllWFP8lA2 1VWsGqaCPgfPjBsOGUoQZnP6+lJ/BFA+8lLpoCiXrf11ET5IVThcXOF2uuPHjd/qDyhA P1xOvOnavlraYyo3AqA4D769r3pJ2e8flDLfEXP10ex1myUiHnviV/YBrK56Uvfa/6Vq xyF6y4U5h7ZYNl4rKNG5s1BurXvC3XKUcmIf+wKlDkBjApeNkWtUCMTAChSIb68bFx1e mqm4HcHRz5xDMJaKAsAMbHqm/ZGGy0b4MF+xuLj93Ji4g/kn64/X3P96H8pzjCPtR0bh ucEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:to:subject:user-agent :mime-version:content-transfer-encoding; bh=c4OQR5bk4TCgqXNynJQoYGCmrA6DJ+iynZLDy9nLJAE=; b=XShZWyUFClJL586s/2Zotn/BBkhNv/j017deYHlHmZvLIiOqwI1uIN6UACVKN+UKVM xBVgTbAMIqgP6ImPRu+ex6aVnYHqQqtXbvoRuKDOirFr17T4jOqGQ/8VaSiiuUm7EDpj a7t2JULB4kvOJGCocvanxq+0RtzuvFI4rxQFJ/6LmKiBSr0G8l0bu3oMuN6Bf4qegrSE svHYNGevYT1Nnkq0KOIlGHSRup1GSIdDj029YjGCStqhofvsywPxQYImucILiUP5A2Y8 V4EUpgi9gCz3clHU/9MUDJMCKtLqVmQzczIAw3mub6vEMDKkVi1uLg+vMOsx8oOFL1KP ldGA== X-Gm-Message-State: AOPr4FXNB8U7Rcjea914v9oT4UhDbSq3EpN179AqdNLLta5IjO5MqTYtVh3dfVUnnLQQQA== X-Received: by 10.194.230.97 with SMTP id sx1mr1363944wjc.0.1461046972392; Mon, 18 Apr 2016 23:22:52 -0700 (PDT) Original-Received: from Aman.gmail.com (149.165.146.77.rev.sfr.net. [77.146.165.149]) by smtp.gmail.com with ESMTPSA id c85sm889206wmd.0.2016.04.18.23.22.50 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Apr 2016 23:22:51 -0700 (PDT) User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.8 EasyPG/1.0.0 Emacs/25.1.50 (x86_64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::22a X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:203082 Archived-At: Hi, Since a couple of days I can't use org-timestamp-change anymore, I got this error: 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. Regards, -- Cédric Chépied >From 5ce4a6e5ed72bf5dd8ec6517119fc03c612e2cfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Ch=C3=A9pied?= 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)) extra (string-match "-\\([012][0-9]\\):\\([0-5][0-9]\\)" extra)) -- 2.8.0