emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bostjan Vilfan <bostjanv@alum.mit.edu>
To: emacs-orgmode@gnu.org
Subject: Org-Agenda uses wrong date for start of daylight savings
Date: Wed, 13 Mar 2013 09:32:20 +0000 (UTC)	[thread overview]
Message-ID: <loom.20130313T102747-802@post.gmane.org> (raw)

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

             reply	other threads:[~2013-03-13  9:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-13  9:32 Bostjan Vilfan [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-03-13  8:44 Org-Agenda uses wrong date for start of daylight savings Bostjan Vilfan
2013-03-13  8:50 ` Bastien
2013-03-13  9:58   ` Bostjan Vilfan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20130313T102747-802@post.gmane.org \
    --to=bostjanv@alum.mit.edu \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).