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
Wrong LocalTime while converting from one timezone to another #191
Comments
I'm not exactly sure what you're trying to do. If you're using |
Hmmm, but P.S. After a little investigation I tend to think that my case is an issue of MIUI 8 of Xiaomi. And it happens when I switch on 'Automatic time zone' in settings. |
Sure, you can construct a If you want to convert |
What timezone is your phone in, and how old is your phone? I'm beginning to suspect the problem may be that the zone data on your phone is out-of-date compared to joda-time. That could result in the output being wrong between the system clock and your app's clock. |
Hmmm, why do other time-applications work well in such case?)) |
I really don't know. I could look more into this if you provide a brief snippet that demonstrates the exact problem (and not just underlined areas of the sample app). Otherwise I don't really have time to chase this down; I'm guessing it's probably not the lib's fault, but some misunderstanding of the timezones involved. |
Closing due to inactivity. |
I used sample application and have just changed sampleLocalDate method:
My idea is - I have LocalTime in UTC and save it as long in database. So, I can restore long timestamp and convert it in LocalTime in UTC. This works well. But I 'd like to convert LocalTime(UTC) to LocalTime(TimeZoneOfMyDevice).
I tried converting but I had an issue - converted LocalTime differ from current time
What could be wrong in my case?
Device: Xiaomi Redmi Note 4X, MTK
The text was updated successfully, but these errors were encountered: