[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] Org-Agenda uses wrong date for start of daylight savings
From: |
Bostjan Vilfan |
Subject: |
[O] Org-Agenda uses wrong date for start of daylight savings |
Date: |
Wed, 13 Mar 2013 09:32:20 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.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