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

Bad time passed calculation when <24 hours #99

Open
arajnoha opened this issue Mar 6, 2023 · 11 comments
Open

Bad time passed calculation when <24 hours #99

arajnoha opened this issue Mar 6, 2023 · 11 comments
Labels
bug Something isn't working

Comments

@arajnoha
Copy link

arajnoha commented Mar 6, 2023

Installed fresh version from F-DROID today.
It seems that when I set a new addiction and mark a start time yesterday afternoon, it adds a day to the calculation.

It was 09:00 (9am) today (6th) and I set an addiction start to 23:20 (11:23pm) last night (5th). It showed me 1 day and 9 hours, as it would elapse another day since that.

a
b

@KiARC
Copy link
Owner

KiARC commented Mar 12, 2023

Hmmm. There have been some bugs with the date picker in the past so this may just be a reoccurrence of that, which I know how to fix. I'll look into it!

@KiARC KiARC added the bug Something isn't working label Mar 12, 2023
@cubandle
Copy link
Contributor

Sorry about that, I fixed this issue in the first commit of #96, but I can also separate it out into a different PR.

@KiARC
Copy link
Owner

KiARC commented Mar 13, 2023

Oh that's ok! I'll look over #96 when I get a chance to!

@programing-monkey
Copy link

I've noticed the same issue, though for me it persists for addiction created at any time. (limited testing, tried ~20 hours, ~2 days, ~1 week) they all seems to add exactly 1 day. I've also pretty much confirmed that it's not an issue with the date picker, as I exported data, and the epoch timestamps are all exactly as they should be. I poked around in your codebase briefly, but I'm not particularly familiar with Kotlin.

I would assume it's mostly with displaying, or perhaps an odd rounding error, but I have little proof of this

@Rult
Copy link

Rult commented May 27, 2024

@KiARC
It seems the bug was fixed, so when the new release is planned? It's been more than a year since 10.0.0.

@KiARC
Copy link
Owner

KiARC commented May 27, 2024 via email

@TreyCherry
Copy link

The problem seems to be that it starts counting at midnight, rather than when hours is greater than 24. Same for when hours would tick up past 24, the day doesn't actually increment until midnight. I'm guessing it was using a built in function, and it counted days by date rather than by hour.

@KiARC
Copy link
Owner

KiARC commented Jul 19, 2024

As far as I'm aware, yes, that's what's happening

@Rult
Copy link

Rult commented Oct 18, 2024

@KiARC any update on recovering the signing keys?
I think you can just create new ones, as the author of Arcticons @Donnnno seemingly did once: I have version 8.3.0 which I can't update from and need to uninstall it.

@KiARC
Copy link
Owner

KiARC commented Oct 18, 2024

Unfortunately I don't have the keys. I really wish I could work on Sobriety right now but I genuinely just don't have the energy to these days. Android development is exhausting. I very well might get back into it eventually, but that's not realistically going to be soon. I'm really sorry.

@KiARC
Copy link
Owner

KiARC commented Oct 18, 2024

I have been seriously considering a new app, either a PWA or something based on Tauri, because I'm much more comfortable with React than with Jetpack Compose and the rest of the Android ecosystem. That's still kinda up in the air, so don't hold your breath, but if can get that off the ground that would be a lot easier for me than continuing with native Android development.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants