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

Allow timezoned timestamps #48

Open
larizzatg opened this issue Sep 18, 2020 · 0 comments
Open

Allow timezoned timestamps #48

larizzatg opened this issue Sep 18, 2020 · 0 comments

Comments

@larizzatg
Copy link

larizzatg commented Sep 18, 2020

Hello @DannyFeliz.
Currently, the component receives the local date of the person and then converts it to the provided timezone. I think we should add a prop to allow the user to pass the timestamp with the expected dates to remove the necessity to subtract/add hours from their locale to match the provided timezone.

But this will send the Date object with the local timezone which is technically incorrect. I'm searching if we can let the Date object know that a Date is in a timezone without converting it. If you have any clues let me know

@larizzatg larizzatg changed the title Improve component api time props Allow timezoned timestamps Sep 21, 2020
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

No branches or pull requests

1 participant