unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Martin Apel via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 56125@debbugs.gnu.org
Subject: bug#56125: 28.1; Timezone conversion sometimes wrong for recurring events, when importing ical to diary
Date: Wed, 22 Jun 2022 08:10:34 +0200	[thread overview]
Message-ID: <87edzh1aqf.fsf@3ds.com> (raw)
In-Reply-To: <87edzhx2t2.fsf@gnus.org>

[-- Attachment #1: Type: text/plain, Size: 3259 bytes --]

Hi Lars,


Lars Ingebrigtsen <larsi@gnus.org> writes:

> EXTERNAL EMAIL : The sender of this email is external to 3DS. Be wary of the content and do not open unexpected
> attachments or links. If you consider this email as spam, you can click the following link
> <https://spam-report.3ds.com/?linktext=https://www.mailcontrol.com/sr/YVso8k_J-_nGX2PQPOmvUtvW5gv9VGgLuRYdU8YNcKA2_t9cJ1amT5dPw1_hrXq58cEWYV4_gjYfmF8UmgH1OQ>==
> (no login or additional action will be requested).
>
>
> Martin Apel <martin.apel@3ds.com> writes:
>
>> When importing the attached minimal ical file using
>> icalendar-import-file, the resulting time is off by one hour. The
>> problem probably lies somewhere in
>> icalendar--convert-recurring-to-diary, but I couldn't pinpoint the
>> exact location.  The only meeting in the attached icalendar file is
>> defined in timezone 'America/New_York' at 10 am. It shows up in my
>> diary (which is timezone 'Europe/Berlin') at 3pm, even though the time
>> difference between the two timezones is 6 hours.
>
> No, the difference varies -- Daylight Savings started on March 13 in the
> US but on March 27 in the EU, and in that period there was a five hour
> difference.
>
> And:
>
> DTSTART;TZID="America/New_York":20220317T100000
> DTEND;TZID="America/New_York":20220317T103000
>
> This was in the middle of that period.  So this seems like it's working
> as it should?
>
> But if I'm reading the ical file right, this is a recurring (weekly?)
> event, so it should be at 4pm after March 27...

I thought that it might have something to do with the different start dates for daylight savings time. However it should
show up at 4pm, but it shows up at 3pm after March 27.

Maybe this is a more general problem, that the diary does not consider timezones at all. I think, that the conversion
functionality would need to convert each date of a recurring event separately, as the daylight savings time might have
changed between consecutive repetitions.  However the diary syntax does not allow to specify this, as far as I
understand. So maybe this is more of a shortcoming in the diary syntax than a conversion problem.  Probably instead of
diary-cyclic another sexp would be needed, which also takes the time of day into account, which diary-cyclic does not
do.

Thanks,

Martin
This email and any attachments are intended solely for the use of the individual or entity to whom it is addressed and may be confidential and/or privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data privacy policy as described on our website. Should you have any questions related to personal data protection, please contact 3DS Data Protection Officer at 3DS.compliance-privacy@3ds.com<mailto:3DS.compliance-privacy@3ds.com>


For other languages, go to https://www.3ds.com/terms/email-disclaimer

  parent reply	other threads:[~2022-06-22  6:10 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-21 14:21 bug#56125: 28.1; Timezone conversion sometimes wrong for recurring events, when importing ical to diary Martin Apel via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-21 18:57 ` Lars Ingebrigtsen
2022-06-21 22:10   ` Phil Sainty
2022-06-22  6:10   ` Martin Apel via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2022-06-23  8:48     ` Lars Ingebrigtsen
2022-06-23 10:06       ` Martin Apel via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-23 11:39         ` Lars Ingebrigtsen
2022-06-23 11:55           ` Martin Apel via Bug reports for GNU Emacs, the Swiss army knife of text editors

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.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87edzh1aqf.fsf@3ds.com \
    --to=bug-gnu-emacs@gnu.org \
    --cc=56125@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    --cc=martin.apel@3ds.com \
    /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.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).