Skip to content

In the Agenda component, automatically retrieve preferred timezone for the current user #735

Description

@waldekmastykarz

Proposal: In the Agenda component, automatically retrieve preferred timezone for the current user

Rationale

Retrieving events from the calendar using the current user's preferred timezone is necessary to properly take into account start and endtime of events. Automating the retrieval of the preferred timezone will simplify working with the Agenda component and lower the amount of custom code that developers need to write and maintain.

Preferred Solution

<mgt-agenda use-preferred-timezone="true"></mgt-agenda>

use-preferred-timezone is a boolean that determines whether the preferred timezone should be included in the request or not. Since including the preferred timezone is important, we should consider setting its default value to true and have developers disable it explicitly. It would lead to a breaking change comparing to the current behavior, but since current v2.0 is still in preview, perhaps that's acceptable.

Additional Context

Related to #681

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Proposed 💡

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions