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

f7DatePicker is off by one day #254

Open
frasemcl opened this issue Feb 15, 2024 · 3 comments
Open

f7DatePicker is off by one day #254

frasemcl opened this issue Feb 15, 2024 · 3 comments

Comments

@frasemcl
Copy link

I noticed a discrepancy in my code and observed the same problem on the example page here. When selecting today's date (2024-02-15), yesterday's date (2024-02-14) is returned.

Current Behavior

On the Example Page:

  • Choose a date: 2019-08-23

  • The selected date is: 2019-08-22

  • Choose multiple dates: 2024-02-14, 2024-02-15, 2024-02-16, 2024-02-17

  • The selected date is: 2024-02-13, 2024-02-14, 2024-02-15, 2024-02-16

  • Choose a date: 2024-02-16

  • The selected date is: 2024-02-15

Expected Behavior

When selecting today's date, it should return the same date instead of yesterday's date.

@frasemcl
Copy link
Author

frasemcl commented Nov 1, 2024

This is still happening for me locally. I'm using shinyMobile 1.0.0 so maybe it has been fixed in newer releases. Seems to be the same as this issue. Let me know if more info would be helpful.

@hypebright
Copy link
Contributor

@frasemcl could you please update to v2 and let us know if this is still happening for you? I can't replicate your issue.

You can use the f7Gallery for a quick example, the first page contains a date picker and displays the value as well: shinyMobile::f7Gallery()

@frasemcl
Copy link
Author

@hypebright, I can confirm that the new look f7DatePicker provided in shinyMobile Version 2.0.1 returns the expected date. I still get the strange behaviour in 1.0.0 but if you can't recreate it and it is fixed in the new version, does this warrant a closed issue? I do however plan to continue to use version 1.0.0 for my project so if anyone has thoughts I'm all ears. Happy to provide more info as needed.

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

2 participants