Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

One hour offset with timezone #60

Open
percyz opened this issue Sep 2, 2021 · 0 comments
Open

One hour offset with timezone #60

percyz opened this issue Sep 2, 2021 · 0 comments

Comments

@percyz
Copy link

percyz commented Sep 2, 2021

Hi,

I got one hour offset for the "start time" and "end time", and one day offset for the "until date", Here is my code:

  newEvent = new CalendarEvent({
    start: {
      hour: 8,
      minute: 30,
      tz: 'Pacific/Auckland',
    },
    end: {
      hour: 17,
      minute: 0,
      tz: 'Pacific/Auckland',
    },
    recurrences: [
      new RRule({
        freq: RRule.WEEKLY,
        byweekday: [],
        dtstart: new Date(),
        until: new Date(),
        tzid: 'Pacific/Auckland',
      }),
    ],
  });

The outcome of the "event.toText({ tz: 'Pacific/Auckland' })" is "7:30 AM to 4:00 PM every week until September 2, 2021"
But what I was expecting the result is "8:30 AM to 5:00 PM every week until September 3, 2021"

I would really appreciate if you could help have a look this issue.

Thank you in advance

Percy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant