Git Product home page Git Product logo

Comments (5)

boxed avatar boxed commented on August 16, 2024 1

#348
#204
#89

All seem like basically the same thing?

#89 specifically has a long discussion where we try to figure out what it SHOULD be doing. I would welcome someone tackling this and I will argue to spulec that any such person be given commit/merge access.

I personally don't use freezegun anymore and have switched totally to time-machine, so I won't be spending more time with this.

from freezegun.

boxed avatar boxed commented on August 16, 2024 1

If you're not using pypy, I strongly recommend you switch to time-machine. It's quite easy to switch in my experience.

from freezegun.

lbckmnn avatar lbckmnn commented on August 16, 2024

Yes #204 is indeed the exact same issue.

Well, for my usecase i don't really care whether the passed time is utc or something else.
The problem is, that datetime.datetime.now() returns the utc time once frozen and time.localtime() doesn't. That is really inconsistent.
For my usecase, I need datetime.datetime.now() and time.localtime()to return the same time.

from freezegun.

lbckmnn avatar lbckmnn commented on August 16, 2024

Yes, thats what i have done now.
Thanks for the suggestion!

from freezegun.

edgarrmondragon avatar edgarrmondragon commented on August 16, 2024

For folks migrating to time-machine because of this, you might wanna be aware of adamchainz/time-machine#325 (comment)

from freezegun.

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.