Giter VIP home page Giter VIP logo

Comments (5)

maxcountryman avatar maxcountryman commented on May 9, 2024

Perhaps the problem is the delta between UTC and your machine's clock. Are you by any chance on the east coast?

from flask-login.

jabeuy avatar jabeuy commented on May 9, 2024

Yes I am. UTC is 5 hours ahead.
Do you know a way around this?

from flask-login.

maxcountryman avatar maxcountryman commented on May 9, 2024

I'm wondering how Flask is handling the expires parameter...perhaps that could be part of the problem.

from flask-login.

jabeuy avatar jabeuy commented on May 9, 2024

Thanks, I'll keep an eye out for this.
In the meantime, it doesn't hurt too much for cookies since their durations aren't likely to be so fine-grained (ie. weeks or months rather than hours).

from flask-login.

simonklee avatar simonklee commented on May 9, 2024

One tips. Keep everything in UTC to make your life easier. The machine which is configured to run the python application, configure it to UTC. When you receive a datetime object from a client convert this to UTC before doing anything. Likewise you might want to convert your UTC datetime objects to the user's local timezone as you send data to the user. Store everything else in UTC time.

from flask-login.

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.