Skip to content

One hour offset with timezone #60

Description

@percyz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions