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

change dateAdded to iso string #822

Merged
merged 1 commit into from
Mar 24, 2023
Merged

Conversation

jonathanhamel4
Copy link
Contributor

@jonathanhamel4 jonathanhamel4 commented Mar 24, 2023

Background

The dateAdded property introduced as a Date is not correctly proxied to our Web component. It has the same class instance limitations remote-ui mentions. (Only keeping prototype)

Solution

Use ISO 8601 string for dates and updated the examples.

Checklist

  • I have updated relevant documentation

@@ -21,7 +21,7 @@ function App({i18n, enabledFeatures}) {
icon='productsMajor'
templateQuery={templateQuery}
templateQueryToInsert={templateQueryToInsert}
dateAdded={new Date('2023-01-15')}
dateAdded={new Date('2023-01-15').toISOString()}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since this is purely used for calculation, .getTime() makes more sense from that standpoint, but i see the consistency argument too

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

Successfully merging this pull request may close these issues.

None yet

3 participants