Skip to content

Make #110 display user's timezone calendar #111

Open

Description

@StanczakDominik

Erik's embed in #110 is basically

https://calendar.google.com/calendar/embed?height=300&wkst=1&bgcolor=%23ffffff&ctz=America%2FLos_Angeles&src=Y19zcXFxMzkwczI0ampmanAzcTg2cHY0MXBpOEBncm91cC5jYWxlbmRhci5nb29nbGUuY29t&color=%2354bfbf&showTitle=1&showNav=1&mode=MONTH&showTabs=1&showCalendars=0&showPrint=0&showDate=1

But suppose we e.g. had a piece of javascript that did this dynamically, using maybe something like https://stackoverflow.com/questions/1091372/getting-the-clients-time-zone-and-offset-in-javascript, then generated that embed dynamically?

Anyone know javascript?

Activity

  1. zorjo commented on Sep 15, 2021

    @zorjo

    Maybe something like console.log(Intl.DateTimeFormat().resolvedOptions().timeZone.replace("/","%2F")) would be used in place of ctz and the other part can be concateneted?

  2. StanczakDominik commented on Sep 16, 2021

    @StanczakDominik
    MemberAuthor

    Could be! Wanna give it a try? :)

  3. zorjo commented on Sep 18, 2021

    @zorjo

    I just sent over a pull request for you folks! Hope it helps. #115

  4. Bodasaieswar commented on Jun 13, 2024

    @Bodasaieswar

    if it is still open., i can work on it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions