Coder Social home page Coder Social logo

Comments (9)

goekay avatar goekay commented on July 17, 2024 1

ah, i know what you mean, the date sent in LocalAuthorizationList does not match the actual expiry date from database. this was to prevent a charging station to read from local/cached white list all the time, if for example the expiry is 5 years from now, and trigger it to ask Steve for the actual, up-to-date authorization status. in the settings tab, you can see an Expiration setting. it controls the time window for caching local id tags.

from steve.

goekay avatar goekay commented on July 17, 2024

are you living in a country with utc+1 timezone?

from steve.

nuno407 avatar nuno407 commented on July 17, 2024

Yes. But the expiry date year does not match anyway

from steve.

goekay avatar goekay commented on July 17, 2024

the thing is, steve, the java application, is set to use UTC as time zone. if your database's timezone varies from that, during the reading/writing such results might occur.

from steve.

goekay avatar goekay commented on July 17, 2024

on the other hand, the LocalAuthorizationList message is not wrong. "16:44:14.689Z" denotes the time in UTC (because of "Z" as suffix), which translates to 17:43 (after rounding) in your time zone. so.. i don't get what the issue is here?

from steve.

nuno407 avatar nuno407 commented on July 17, 2024

Ok. Then the solution is to use UTC timezone in the database also?
Thank you for the help.

from steve.

goekay avatar goekay commented on July 17, 2024

as a best practice: steve time zone == mysql time zone

but i do not see any problem with the LocalAuthorizationList mesasage. so there's no problem actually.

from steve.

goekay avatar goekay commented on July 17, 2024

maybe it's time to rethink whether this limiting/strict behaviour is necessary...

from steve.

nuno407 avatar nuno407 commented on July 17, 2024

Hi @goekay,
Sorry for the not so fast response. But Yeap I think you fixed the issue.
Thank you! 😃

from steve.

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.