From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bostjan Vilfan Subject: Org-Agenda uses wrong date for start of daylight savings Date: Wed, 13 Mar 2013 09:32:20 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:57773) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFi37-0002r3-Nu for emacs-orgmode@gnu.org; Wed, 13 Mar 2013 05:32:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UFi35-0005tw-RI for emacs-orgmode@gnu.org; Wed, 13 Mar 2013 05:32:41 -0400 Received: from plane.gmane.org ([80.91.229.3]:43348) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFi35-0005tg-L8 for emacs-orgmode@gnu.org; Wed, 13 Mar 2013 05:32:39 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UFi3P-0004iQ-M4 for emacs-orgmode@gnu.org; Wed, 13 Mar 2013 10:32:59 +0100 Received: from cpe-92-37-31-169.dynamic.amis.net ([92.37.31.169]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Mar 2013 10:32:59 +0100 Received: from bostjanv by cpe-92-37-31-169.dynamic.amis.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Mar 2013 10:32:59 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hello, Thanks for your reply. I made the assignments in my init.el file, as follows: (load "utilvilf") ; frame parameters, font (load "cal-dst") ; I noticed that cal-dst was not initially loaded (setq calendar-daylight-savings-starts '(bv-calendar-dst-starts year)) (setq calendar-daylight-savings-ends '(bv-calendar-dst-ends year)) (setq calendar-daylight-time-offset 60) (setq calendar-daylight-savings-starts-time 180) (setq calendar-daylight-savings-ends-time 180) The two functions, bv-calendar-dst-starts and bv-calendar-dst-ends are defined in utilvilf (see above) as follows: (defun bv-calendar-dst-starts (year) "Daylight Savings Start" (calendar-nth-named-day -1 0 3 year) ) (defun bv-calendar-dst-ends (year) "Daylight Savings End" (calendar-nth-named-day -1 0 10 year) ) when I tested the two functions, they give the correct answer for the year 2013: (3 31 2013) and (10 27 2013) Regards, Bostjan