Giter VIP home page Giter VIP logo

Comments (8)

monich avatar monich commented on August 29, 2024

This is strange, I'm using QDateTime::currentMSecsSinceEpoch() to get the current time, that returns is the number of milliseconds since 1970-01-01T00:00:00 UTC which doesn't depend on the time zone, as long as local time and time zone are correct on both ends (the server and the OTP app).

In any case, per-token time shift does make sense to handle broken clock (or more likely, time zone) on the server side. That would be a nice improvement - I'll give it a shot when I have some time to spare.

from harbour-foilauth.

sppg avatar sppg commented on August 29, 2024

Thank you very much @monich for your fast response.
In fact, the timezones are not updated that regularly on sailfishos, and I had the issue twice already (as I adjust the phone's time manually).
And of course, I agree that this improvement would help also in case of wrongly set timezone on the server.
I'm ready to betatest it whenever you ask me :)
Cheers

from harbour-foilauth.

monich avatar monich commented on August 29, 2024

Hehe, timeshift is already in the UI, being encrypted, restored and everything... Just not being used 🙂

from harbour-foilauth.

monich avatar monich commented on August 29, 2024

That was easy (495c1d0)

from harbour-foilauth.

monich avatar monich commented on August 29, 2024

Timeshift should work in release 1.1.8

from harbour-foilauth.

sppg avatar sppg commented on August 29, 2024

Thank you very much, the time I connected I found the 1.1.9 already :)

from harbour-foilauth.

monich avatar monich commented on August 29, 2024

Please test and if it works for you, close the issue

from harbour-foilauth.

sppg avatar sppg commented on August 29, 2024

Works perfectly.
Thank you again

from harbour-foilauth.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.