Giter VIP home page Giter VIP logo

Comments (4)

nilshoerrmann avatar nilshoerrmann commented on August 29, 2024

Note: We should check if this happens in the current release, too, as you are using a newer, unpublished version with localisation support.

from datetime.

johannahoerrmann avatar johannahoerrmann commented on August 29, 2024

Okay. I discovered the following: the problem occurs when choosing a date in december, no other month. It's also not dependant on a time range, but the year is actually set to one year before whenever I change the time. (I start with 2009, choose a time, it's set to 2008, I change the time, it changes to 2007, ...)

from datetime.

johannahoerrmann avatar johannahoerrmann commented on August 29, 2024

I checked the current release and could detect the following: Everything is alright when entering a range in december, but when my start date is in december and I choose one of the grayish dates of January displayed in the december calendar page as the end date, the year for this second date jumps two years ahead (e.g. dec. 19 2009 – jan. 1 2011, dec. 7 2010 – jan. 1 2012).

from datetime.

nilshoerrmann avatar nilshoerrmann commented on August 29, 2024

It seems like I misinterpreted the .last().month() function of the dateJS framework. I used the following code:

if(date.is().january()) date.last().year();
date.last().month();

because I thought that .month() will only reset the month number and not the year. But it did reset both correctly. Deleting the first line of the code should solve the problem.

Should be fixed in the next version.

from datetime.

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.