From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bostjan Vilfan Subject: Re: Org-Agenda uses wrong date for start of daylight savings Date: Wed, 13 Mar 2013 11:58:53 +0200 Message-ID: References: <871ubjk7jq.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:35636) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFiSY-0004pT-6f for emacs-orgmode@gnu.org; Wed, 13 Mar 2013 05:59:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UFiSU-0005kJ-Pk for emacs-orgmode@gnu.org; Wed, 13 Mar 2013 05:58:58 -0400 Received: from mail-ve0-f171.google.com ([209.85.128.171]:34673) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFiSU-0005kC-L9 for emacs-orgmode@gnu.org; Wed, 13 Mar 2013 05:58:54 -0400 Received: by mail-ve0-f171.google.com with SMTP id b10so568439vea.16 for ; Wed, 13 Mar 2013 02:58:53 -0700 (PDT) In-Reply-To: <871ubjk7jq.fsf@bzg.ath.cx> 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: Bastien Cc: emacs-orgmode@gnu.org, Bostjan Vilfan Hello, On Wed, Mar 13, 2013 at 10:50 AM, Bastien wrote: > Hi Bostjan, > > Bostjan Vilfan writes: > >> I've noticed that my orgmode installation (7.9.1) uses the wrong date for the >> start of daylight savings. The emacs manual lists that in this case one should >> change the values of calendar-daylight-savings-starts and >> calendar-daylight-savings-ends variables. I tried it, but it doesn't have any >> effect. Can somebody tell me how to make emacs/orgmode use the European daylight >> savings time? > > Can you show the code you used to change the value of > `calendar-daylight-savings-starts'? > > Thanks, > > -- > Bastien 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 PS Your may have received a duplicate of this mail since I first tried to send it via the web page, but it seems to be taking quite long -- ********************************** Bostjan Vilfan Professor Emeritus of Computer Science University of Ljubljana Contact data: Address Siviceva ulica 15 1000 Ljubljana, Slovenia Phone +386-1-421-7750 E-mail bostjanv@alum.mit.edu **********************************