Skip to content

[Bug]: Date button style formatting limitation/issue #710

@chriskastner

Description

@chriskastner

What happened?

When displaying an event using the Date buttonStyle, the detail section includes a date which is formatted mm/dd/yyyy (US date format). Is it possible to provide either an option to specify that date format, or an option to just hide that date entirely... it's already included on the left side of the button anyway so largely redundant. I'm also not sure why but the date does not appear all of the time.

Would also be good to have an option to hide the time zone display. One would assume it is always in the local time based on the location - so we would prefer it to be disabled entirely.

I can remove these values with JavaScript but working with the shadowRoot is a bit of a pain in that regard.

How to reproduce?

This seems to display only if the time zone is not the same as the client time zone.

Screenshots & more

No response

System & Environment

  1. Device and OS: Windows
  2. Browser: Chrome
  3. Version number of the application: 138.0.7204.97
  4. How you include the script: CDN + add-to-calendar-button element (basic JS implementation)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions