kwart / totp-me

TOTP authenticator for Java ME enabled devices. It's an implementation of the RFC 6238 - TOTP: Time-Based One-Time Password Algorithm.
Apache License 2.0
32 stars 12 forks source link

can't add negative time offset #32

Open olafbooij opened 7 months ago

olafbooij commented 7 months ago

Since daylight saving kicked in the app generates wrong codes. If I set the time of my nokia 3310 an hour back the app works fine (but my friends complain I'm always late...). Using the time correction I seem to be able to add seconds, but not remove them. That is: when filling in the time correction I can only add digits, not a minus sign.

I could perhaps use a 2^32 - 3600 (I didn't try that yet...) as a work around. But it would be quite tedious to add this for all my profiles.

Are there any other ideas how to fix this. If not then I can try to create a PR to add an additional negative-offset box.

Very happy btw with this 2FA-app on my nokia!!