-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Days of the week are off by one when timezone set to Beirut(+3:00) #269
Comments
Screenshot? I have no idea what you're saying. |
After further testing on other devices, I found out that this bug is not appearing on my Nexus 6 As for the initialization of the calendar, minDate = Calendar.getInstance(); maxDate = Calendar.getInstance(); date = minDate.getTime(); calendarView.init(minDate.getTime(), maxDate.getTime()).inMode(CalendarPickerView.SelectionMode.SINGLE).withSelectedDate(date); |
Well that's perplexing. I can't reproduce the issue on any of the phones I have at my disposal so I'm not going to be able to help. Try running the sample app on one of your phones to see if it has the same issue? I'd love a PR if you figure out where the bug is. |
I checked using the sample app and received the same result as my app. |
Hrm. If you see the same issue in the sample app, that definitely sounds like a bug...maybe hook up the debugger and see if you can see why it's selecting the wrong date? |
Hello again, |
Innnnteresting. I don't have time to look at this right now, but definitely curious to see what's busted here. PR welcome if you figure it out! |
We have a handful of reports of this happening as well, have there been any developments on this issue or nothing yet? |
Nope. I haven't been able to repro. PRs welcome if you figure it out! |
happening with me as well. Only on the samsung galaxy s6 edge though for IST+5.30 timezone. any updates? |
Having the same issue for IST+5.30 timezone as well on some devices. @edenman any insight?? |
I cannot provide a proper solution, but something of a workaround. Our app uses a fixed header where the order of the weekdays are hardcoded. We had the same issue, and our solution was to force the calendar to use a US locale. This fixed it on all our devices that had the issue. It's not an exact solution, but it might help someone out. We have not yet tried to reproduce the issue with the default 'weekday header', but we might do that later. The code in our app looks like this:
Note that I am not the Android developer, so the solution is somewhat paraphrased. |
@jontelang Yes, your solution will definitely help us for showing the dates on a proper day, but then when we are clicking on the particular date it will return the date before one day for the first time.
If I am clicking on the 20th Jan 2019 then it will return me Did you faced something like this!!?? |
@kidsh3148 That's a good question. I only assume we did not have this issue, as it passed QA. But I don't have access to double check it at the moment. |
To whom it may concern,
The issue is in the month of april. All the april days start one day after the last day of march.
Example: April 1, 2016 is being shown as Saturday while March 31, 2016 is a Thurday in the com.squareup.timessquare.CalendarPickerView.
This error is being repeated over the year.
Thank you for your time.
The text was updated successfully, but these errors were encountered: