GNU bug report logs - #18710
24.3; icalendar-import-file does not respect daylight savings

Previous Next

Package: emacs;

Reported by: Christophe Troestler <Christophe.Troestler <at> umons.ac.be>

Date: Mon, 13 Oct 2014 19:46:02 UTC

Severity: normal

Tags: patch

Merged with 15408

Found in versions 23.4, 24.3

Done: Ulf Jasper <ulf.jasper <at> web.de>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 18710 in the body.
You can then email your comments to 18710 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#18710; Package emacs. (Mon, 13 Oct 2014 19:46:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Christophe Troestler <Christophe.Troestler <at> umons.ac.be>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 13 Oct 2014 19:46:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Christophe Troestler <Christophe.Troestler <at> umons.ac.be>
To: <bug-gnu-emacs <at> gnu.org>
Subject: 24.3; icalendar-import-file does not respect daylight savings
Date: Mon, 13 Oct 2014 17:12:26 +0200
[Message part 1 (text/plain, inline)]
Hi,

My daylight savings are

    calendar-daylight-savings-starts-time = 120
    calendar-daylight-savings-ends-time   = 180

but when I convert the attached ICS calendar containing an event with
the following dates:

    DTSTART:20141103T121500Z
    DTEND:20141103T141500Z

with (icalendar-import-file "a.ics" "a"), I get

    3/11/2014 14:15-16:15 ...

Thus the conversion did not use the fact that, at this date, the
winter time (UTC+1) is in use and not UTC+2 (the current time).

Could you please fix this bug?

Thanks,
C.


----------------------------------------------------------------------

In GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.12.2)
 of 2014-09-08 on binet, modified by Debian
Windowing system distributor `The X.Org Foundation', version 11.0.11601000
System Description:	Debian GNU/Linux testing (jessie)

Configured using:
 `configure '--build' 'x86_64-linux-gnu' '--build' 'x86_64-linux-gnu'
 '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib'
 '--localstatedir=/var/lib' '--infodir=/usr/share/info'
 '--mandir=/usr/share/man' '--with-pop=yes'
 '--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.3/site-lisp:/usr/share/emacs/site-lisp'
 '--with-crt-dir=/usr/lib/x86_64-linux-gnu' '--with-x=yes'
 '--with-x-toolkit=gtk3' '--with-toolkit-scroll-bars'
 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2
 -fstack-protector-strong -Wformat -Werror=format-security -Wall'
 'LDFLAGS=-Wl,-z,relro' 'CPPFLAGS=-D_FORTIFY_SOURCE=2''

Important settings:
  value of $LC_MESSAGES: en_US.UTF-8
  value of $LC_NUMERIC: en_US.UTF-8
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Summary

Minor modes in effect:
  desktop-save-mode: t
  TeX-PDF-mode: t
  show-paren-mode: t
  shell-dirtrack-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  column-number-mode: t
  transient-mark-mode: t

Recent input:
C-x C-z <switch-frame> <down-mouse-4> <mouse-4> <double-down-mouse-4> 
<double-mouse-4> <triple-down-mouse-4> <triple-mouse-4> 
C-x m s u e n t i n <tab> <M-backspace> s <backspace> 
q u e n <tab> b <tab> <tab> <M-tab> <down> M a t h 
SPC e l e m SPC 5 M-> S A l u t , <return> <up> M-c 
<down> <down> <return> J ' a i SPC m i s SPC m a SPC 
c o r r e c t i o n SPC d u SPC t e s t SPC 5 SPC d 
a n s SPC <backspace> <backspace> s SPC t o n SPC a 
s i e r SPC e t <C-left> <C-left> c <down> SPC l e 
SPC f c h i <backspace> <backspace> <backspace> i c 
h i e r SPC s u r SPC d r o p b v o <backspace> <backspace> 
<backspace> b o x . M-q C-x C-s <return> <return> B 
o n n e SPC f i n SPC d e SPC j o u r n é e , <return> 
c . <backspace> <backspace> C . C-c C-c y p d SPC SPC 
d SPC d n <switch-frame> <help-echo> C-x C-f ~ / . 
e m <tab> i n i <tab> <return> C-s h r a <backspace> 
<backspace> p <backspace> <backspace> h o r a i <next> 
<down-mouse-4> <mouse-4> <double-down-mouse-4> <double-mouse-4> 
<triple-down-mouse-4> <triple-mouse-4> <down-mouse-4> 
<mouse-4> <double-down-mouse-4> <double-mouse-4> <triple-down-mouse-4> 
<triple-mouse-4> <triple-down-mouse-4> <triple-mouse-4> 
<down-mouse-4> <mouse-4> <double-down-mouse-4> <double-mouse-4> 
<triple-down-mouse-4> <triple-mouse-4> <triple-down-mouse-4> 
<triple-mouse-4> <down-mouse-1> <mouse-movement> <mouse-1> 
<C-left> C-SPC <C-right> <C-right> <C-right> M-w <switch-frame> 
C-h v C-y <return> C-h v C-y <return> M-x b u g <tab> 
<tab> <M-backspace> <M-backspace> e m a <tab> <down-mouse-1> 
<mouse-movement> <mouse-2> <return> C-g <switch-frame> 
<switch-frame> M-x r e p o <tab> r t ² <backspace> 
<tab> e m <tab> b <tab> <return>

Recent messages:
Loading image...done
Updating speedbar to: /home/trch/.emacs.d/...done
Mark saved where search started
Mark set
Type "q" in help window to restore its previous buffer.

Making completion list... [2 times]
Please enter a number.
Quit
Making completion list...

Load-path shadows:
/usr/share/emacs/site-lisp/maxima/sshell hides /usr/share/emacs24/site-lisp/gcl/sshell
/usr/share/emacs/site-lisp/maxima/smart-complete hides /usr/share/emacs24/site-lisp/gcl/smart-complete
/usr/share/emacs/site-lisp/maxima/maxima-font-lock hides /usr/share/emacs24/site-lisp/maxima/maxima-font-lock
/usr/share/emacs/site-lisp/maxima/setup-imaxima-imath hides /usr/share/emacs24/site-lisp/maxima/setup-imaxima-imath
/usr/share/emacs/site-lisp/maxima/imaxima hides /usr/share/emacs24/site-lisp/maxima/imaxima
/usr/share/emacs/site-lisp/maxima/sshell hides /usr/share/emacs24/site-lisp/maxima/sshell
/usr/share/emacs/site-lisp/maxima/imath hides /usr/share/emacs24/site-lisp/maxima/imath
/usr/share/emacs/site-lisp/maxima/imaxima-autoconf-variables hides /usr/share/emacs24/site-lisp/maxima/imaxima-autoconf-variables
/usr/share/emacs/site-lisp/maxima/maxima hides /usr/share/emacs24/site-lisp/maxima/maxima
/usr/share/emacs/site-lisp/maxima/emaxima hides /usr/share/emacs24/site-lisp/maxima/emaxima
/usr/share/emacs/site-lisp/maxima/smart-complete hides /usr/share/emacs24/site-lisp/maxima/smart-complete
/usr/share/emacs/site-lisp/maxima/bookmode hides /usr/share/emacs24/site-lisp/maxima/bookmode
~/nobackup/software/matlab-emacs/tlc hides /usr/share/emacs24/site-lisp/emacs-goodies-el/tlc
~/nobackup/software/matlab-emacs/matlab hides /usr/share/emacs24/site-lisp/emacs-goodies-el/matlab
/usr/share/emacs24/site-lisp/cmake-data/cmake-mode hides /usr/share/emacs/site-lisp/cmake-mode
/usr/share/emacs/24.3/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup
/usr/share/emacs24/site-lisp/flim/hex-util hides /usr/share/emacs/24.3/lisp/hex-util
/usr/share/emacs24/site-lisp/flim/md4 hides /usr/share/emacs/24.3/lisp/md4
/usr/share/emacs24/site-lisp/dictionaries-common/ispell hides /usr/share/emacs/24.3/lisp/textmodes/ispell
/usr/share/emacs24/site-lisp/dictionaries-common/flyspell hides /usr/share/emacs/24.3/lisp/textmodes/flyspell
/usr/share/emacs/site-lisp/rst hides /usr/share/emacs/24.3/lisp/textmodes/rst
/usr/share/emacs24/site-lisp/flim/sasl-cram hides /usr/share/emacs/24.3/lisp/net/sasl-cram
/usr/share/emacs24/site-lisp/flim/hmac-md5 hides /usr/share/emacs/24.3/lisp/net/hmac-md5
/usr/share/emacs24/site-lisp/flim/sasl-ntlm hides /usr/share/emacs/24.3/lisp/net/sasl-ntlm
/usr/share/emacs24/site-lisp/flim/ntlm hides /usr/share/emacs/24.3/lisp/net/ntlm
/usr/share/emacs24/site-lisp/flim/hmac-def hides /usr/share/emacs/24.3/lisp/net/hmac-def
/usr/share/emacs24/site-lisp/flim/sasl hides /usr/share/emacs/24.3/lisp/net/sasl
/usr/share/emacs24/site-lisp/flim/sasl-digest hides /usr/share/emacs/24.3/lisp/net/sasl-digest
/usr/share/emacs24/site-lisp/auctex/tex-mik hides /usr/share/emacs/site-lisp/auctex/tex-mik
/usr/share/emacs24/site-lisp/auctex/toolbar-x hides /usr/share/emacs/site-lisp/auctex/toolbar-x
/usr/share/emacs24/site-lisp/auctex/prv-emacs hides /usr/share/emacs/site-lisp/auctex/prv-emacs
/usr/share/emacs24/site-lisp/auctex/tex hides /usr/share/emacs/site-lisp/auctex/tex
/usr/share/emacs24/site-lisp/auctex/tex-buf hides /usr/share/emacs/site-lisp/auctex/tex-buf
/usr/share/emacs24/site-lisp/auctex/tex-jp hides /usr/share/emacs/site-lisp/auctex/tex-jp
/usr/share/emacs24/site-lisp/auctex/tex-info hides /usr/share/emacs/site-lisp/auctex/tex-info
/usr/share/emacs24/site-lisp/auctex/font-latex hides /usr/share/emacs/site-lisp/auctex/font-latex
/usr/share/emacs24/site-lisp/auctex/context-nl hides /usr/share/emacs/site-lisp/auctex/context-nl
/usr/share/emacs24/site-lisp/auctex/plain-tex hides /usr/share/emacs/site-lisp/auctex/plain-tex
/usr/share/emacs24/site-lisp/auctex/preview hides /usr/share/emacs/site-lisp/auctex/preview
/usr/share/emacs24/site-lisp/auctex/context hides /usr/share/emacs/site-lisp/auctex/context
/usr/share/emacs24/site-lisp/auctex/tex-bar hides /usr/share/emacs/site-lisp/auctex/tex-bar
/usr/share/emacs24/site-lisp/auctex/tex-style hides /usr/share/emacs/site-lisp/auctex/tex-style
/usr/share/emacs24/site-lisp/auctex/bib-cite hides /usr/share/emacs/site-lisp/auctex/bib-cite
/usr/share/emacs24/site-lisp/auctex/multi-prompt hides /usr/share/emacs/site-lisp/auctex/multi-prompt
/usr/share/emacs24/site-lisp/auctex/tex-fold hides /usr/share/emacs/site-lisp/auctex/tex-fold
/usr/share/emacs24/site-lisp/auctex/tex-font hides /usr/share/emacs/site-lisp/auctex/tex-font
/usr/share/emacs24/site-lisp/auctex/latex hides /usr/share/emacs/site-lisp/auctex/latex
/usr/share/emacs24/site-lisp/auctex/texmathp hides /usr/share/emacs/site-lisp/auctex/texmathp
/usr/share/emacs24/site-lisp/auctex/context-en hides /usr/share/emacs/site-lisp/auctex/context-en

Features:
(shadow emacsbug message rfc822 mml mml-sec mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail
mail-utils debian-bug rfc2047 rfc2045 ietf-drums texmathp latexenc
dabbrev calc-alg calc-ext calc-menu calc calc-loaddefs calc-macs
ispell org-element org-wl org-w3m org-vm org-rmail org-mhe org-mew
org-irc org-jsinfo org-infojs org-html org-exp ob-exp org-exp-blocks
org-agenda org-info org-gnus org-docview org-bibtex org-bbdb org
ob-tangle ob-ref ob-lob ob-table org-footnote org-src ob-comint
ob-keys org-pcomplete org-list org-faces org-entities org-version
ob-emacs-lisp ob org-compat org-macs ob-eval org-loaddefs find-func
help-mode tramp-cache tramp tramp-compat tramp-loaddefs view cal-china
lunar solar cal-dst cal-islam holidays hol-loaddefs cal-move misearch
multi-isearch qp reftex-parse w3m-form mew-varsx mew-unix mew-w3m
cl-macs gv cl w3m doc-view dired image-mode w3m-hist w3m-fb
bookmark-w3m w3m-ems wid-edit w3m-ccl ccl w3m-favicon w3m-image
w3m-proc w3m-util diary-lib diary-loaddefs cal-menu calendar
cal-loaddefs jka-compr info conf-mode mule-util caml-font caml
tuareg_indent tuareg smie caml-help caml-types caml-emacs vc-git
reftex-auc preview prv-emacs tex-buf reftex-dcr reftex reftex-vars
noutline outline latex tex-style desktop tlc matlab-load font-latex
tex dbus xml warnings bibtex speedbar sb-image ezimage dframe
erc-goodies erc erc-backend erc-compat auth-source eieio byte-opt
bytecomp byte-compile cconv gnus-util mm-util mail-prsvr
password-cache pp bbdb-mew mew-auth mew-config mew-imap2 mew-imap
mew-nntp2 mew-nntp mew-pop mew-smtp mew-ssl mew-ssh mew-net
mew-highlight mew-sort mew-fib mew-ext mew-refile mew-demo mew-attach
mew-draft mew-message mew-thread mew-virtual mew-summary4 mew-summary3
mew-summary2 mew-summary mew-search mew-pick mew-passwd mew-scan
mew-syntax mew-bq mew-smime mew-pgp mew-header mew-exec mew-mark
mew-mime mew-edit mew-decode mew-encode mew-cache mew-minibuf
mew-complete mew-addrbook mew-local mew-vars3 mew-vars2 mew-vars
mew-env mew-mule3 mew-mule mew-gemacs mew-key mew-func mew-blvs
mew-const mew bbdb timezone paren package server debian-el
debian-el-loaddefs w3m-load haskell-mode-autoloads edmacro kmacro ido
ess-toolbar ess-mouse mouseme thingatpt browse-url ess-menu ess-swv
ess-noweb ess-noweb-font-lock-mode ess-bugs-l essd-els ess-sas-d
ess-sas-l ess-sas-a shell pcomplete ess-sta-d ess-sta-l cc-vars
cc-defs make-regexp ess-sp6-d ess-sp3-d ess-julia ess-r-d compile
ess-tracebug format-spec ess-roxy advice cl-lib advice-preload
hideshow ess-help ess-developer ess-r-args eldoc help-fns ess-s-l ess
ess-inf comint ansi-color ring ess-mode ess-noweb-mode ess-utils
ess-custom executable easymenu ess-compat ess-site emacs-goodies-el
emacs-goodies-custom emacs-goodies-loaddefs easy-mmode bbdb-autoloads
preview-latex tex-site auto-loads time-date tooltip ediff-hook
vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image
regexp-opt fringe tabulated-list newcomment lisp-mode register page
menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core frame cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer
loaddefs button faces cus-face macroexp files text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process dbusbind
dynamic-setting system-font-setting font-render-setting move-toolbar
gtk x-toolkit x multi-tty emacs)
[a.ics (text/calendar, inline)]
BEGIN:VCALENDAR
VERSION:2.0
PRODID;LANGUAGE=fr:Copyright Index-Education - HYPERPLANNING 2014
METHOD:PUBLISH
X-CALSTART:20140915T000000Z
X-CALEND:20150913T000000Z
X-WR-CALNAME;LANGUAGE=fr:HYP - XXX
X-WR-CALDESC;LANGUAGE=fr:XXX
BEGIN:VEVENT
CATEGORIES:HYPERPLANNING
DTSTAMP:20141013T170144Z
LAST-MODIFIED:20141009T141510Z
UID: XXX
DTSTART:20141103T121500Z
DTEND:20141103T141500Z
SUMMARY;LANGUAGE=fr:XXX
LOCATION;LANGUAGE=fr:NiP.0A07
DESCRIPTION;LANGUAGE=fr:XXX
END:VEVENT


Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18710; Package emacs. (Tue, 14 Oct 2014 15:35:02 GMT) Full text and rfc822 format available.

Message #8 received at 18710 <at> debbugs.gnu.org (full text, mbox):

From: Ulf Jasper <ulf.jasper <at> web.de>
To: Christophe Troestler <Christophe.Troestler <at> umons.ac.be>,
 18710-done <at> debbugs.gnu.org
Cc: 18710 <at> debbugs.gnu.org
Subject: Re: bug#18710: 24.3;
 icalendar-import-file does not respect daylight savings
Date: Tue, 14 Oct 2014 17:34:00 +0200
Christophe Troestler <Christophe.Troestler <at> umons.ac.be> writes:

> but when I convert the attached ICS calendar containing an event with
> the following dates:
>
>     DTSTART:20141103T121500Z
>     DTEND:20141103T141500Z
>
> with (icalendar-import-file "a.ics" "a"), I get
>
>     3/11/2014 14:15-16:15 ...
>
> Thus the conversion did not use the fact that, at this date, the
> winter time (UTC+1) is in use and not UTC+2 (the current time).

Thanks for reporting.  This is a duplicate of bug #15408 which has been
resolved on trunk.

Closing this bug.


BTW: `calendar-daylight-savings-starts-time' and
`calendar-daylight-savings-ends-time' are not important here.  Rather it
is `calendar-daylight-savings-starts' and
`calendar-daylight-savings-ends'.  But you probably would not need to
touch these either.  Please have a look at the "Daylight Saving Time"
section in the Emacs manual.




Reply sent to Ulf Jasper <ulf.jasper <at> web.de>:
You have taken responsibility. (Tue, 14 Oct 2014 15:35:03 GMT) Full text and rfc822 format available.

Notification sent to Christophe Troestler <Christophe.Troestler <at> umons.ac.be>:
bug acknowledged by developer. (Tue, 14 Oct 2014 15:35:04 GMT) Full text and rfc822 format available.

Merged 15408 18710. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 14 Oct 2014 15:43:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 12 Nov 2014 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 10 years and 278 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.