GithubHelp home page GithubHelp logo

Comments (6)

ANovokmet avatar ANovokmet commented on July 23, 2024

When I removed moment from the lib, there were some issues left with timezones and headers. I'm working on it. Can you please tell me your timezone and header configuration?

from svelte-gantt.

zhaofang avatar zhaofang commented on July 23, 2024

from svelte-gantt.

ANovokmet avatar ANovokmet commented on July 23, 2024

Thanks for reporting this bug, svelte-gantt currently has an issue with months because it takes a month as a 30 day duration, when it actually varies from 28 to 31, not going to be an easy fix for me, but I'll do my best

from svelte-gantt.

Primenotes avatar Primenotes commented on July 23, 2024

@ANovokmet Hey, I am thinking about using svelte-gantt for my project.
The correct display of month is crucial, any idea when you plan to address this issue?
I think that I could manage to implement calender weeks myself.

from svelte-gantt.

V-Py avatar V-Py commented on July 23, 2024

The display of months should be good with the last update (4.0.6 beta), let me know if it's not the case ๐Ÿ˜„

from svelte-gantt.

glutamate avatar glutamate commented on July 23, 2024

@V-Py the problem is gone for months but persists for quarters

Screenshot 2022-06-20 at 21 28 07

          columnOffset: 14,
          columnUnit: "day",
          magnetUnit: "day",
          magnetOffset: 1,
          headers: [
            {
              unit: "month",
              format: "YYYY[Q]Q",
              offset: 3,
            },
            { unit: "month", format: "MM", offset: 1 },
          ],

and years

Screenshot 2022-06-20 at 21 29 45

          columnOffset: 14,
          columnUnit: "day",
          magnetUnit: "day",
          magnetOffset: 1,
          headers: [
            {
              unit: "year",
              format: "YYYY",
              offset: 1,
            },
            { unit: "month", format: "[Q]Q", offset: 3 },
          ],

in the second screenshot, the two events are actually in 2022, but displayed in 2021.

Maybe reintroducing moment or something equivalent as a dependency could facilitate a lot of these calculations.

from svelte-gantt.

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.