Git Product home page Git Product logo

Comments (4)

Jinnrry avatar Jinnrry commented on August 26, 2024

I get same error also. My sqlite driver is modernc.org/sqlite.

from scs.

Jinnrry avatar Jinnrry commented on August 26, 2024

https://github.com/alexedwards/scs/blob/master/sqlite3store/sqlite3store.go#L51

Format the expiry , it will work.

from scs.

alexedwards avatar alexedwards commented on August 26, 2024

@LordPraslea I've tried to replicate this problem and I can't --- following the setup instructions in the README (https://github.com/alexedwards/scs/tree/master/sqlite3store) and using the example code, the expiry date seems to be set with no problems.

Could you provide some example code that demonstrates the issue?

from scs.

alexedwards avatar alexedwards commented on August 26, 2024

@LordPraslea Actually don't worry about the example. Looking through the SQLite docs I can see that julianday potentially doesn't work with all values returned by time.Time.String() and that's enough to go on.

I've pushed commit 84bd122 which should fix this --- it now converts the expiry to UTC and formats it to "2006-01-02T15:04:05.999" before doing the insert.

I'm going to close this, but please reopen if there continues to be a problem.

from scs.

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.