Code Monkey home page Code Monkey logo

Comments (4)

Hesammousavi avatar Hesammousavi commented on August 18, 2024 1

lets take an example :
i wrote this code
jdate(); // output : 1397-08-02 11:00:00
but when i wrote this code - you can see result in bottom
jdate()->subMonths(1); // output : 1398-02-03 11:00:00
i think that it doesn't work correctly

from jalali.

morilog avatar morilog commented on August 18, 2024

what kind of problems? please give me some examples.

from jalali.

morilog avatar morilog commented on August 18, 2024

I wrote a test in local with this lines:

       $jDate = Jalalian::fromFormat('Y-m-d H:i:s', '1397-08-02 11:00:00');
       $this->assertEquals('1397-07-02', $jDate->subMonths()->format('Y-m-d'));

and it was passed!

maybe you installed old version of this package and get wrong results

from jalali.

Hesammousavi avatar Hesammousavi commented on August 18, 2024

yeah , you're right
i figure out that why i got it
because of beberlei/assert's version
i had beberlei/assert dev-master so composer installed morilog/jalali version 3.0.7 so i removed it and then i reinstalled morilog/jalali
it installed last version of morilog (3.0.12)
and now i don't have this issues , tnx

from jalali.

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.