Local time: Wed 2022-01-12 14:46:46 EST
Universal time: Wed 2022-01-12 19:46:46 UTC
RTC time: Wed 2022-01-12 19:46:46
Time zone: America/New_York (EST, -0500)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no
Oh interesting… I was collecting screens for a few browsers across OSs and I found the same issue on both:
Chrome Version 96.0.4664.45 (Official Build) (64-bit) Majaro Linux KDE
Chrome Version 97.0.4692.71 (Official Build) (x86_64) macOS Monterey Version 12.1
Then I moved to:
Firefox 95.0.2 (64-bit) Majaro Linux KDE
And the problem does not occur…
It seems like a chrome specific bug, which would explain why the standalone electron app has the same issue.
UPDATE:
Threw the vikunja frontend on one of my local servers and fronted it with caddy and set it to use my locally running backend. Confmed that the gantt chart error shows up in Chrome but not in Firefox. If you need any more data or testing, let me know, but at least this provides an option.
Further updating this… I tested this on two different Windows 10 laptops running Firefox and they have the same issue as Chrome so I only have this working in Firefox on Linux.
Just to clarify these are the steps used to reproduce:
Create a new task
Set the start date to 2021-12-01
Set the end date to 2021-12-15
Open the gantt view
Set the gantt dates in the chart from 2021-12-01 to 2021-12-31
I’ve tried to reproduce this using these steps in Chrome and Firefox on browserstack but it seems to work fine (other than the white bar at the right):
I’ve been looking into replacing / refactoring the gantt chart component in general but I won’t have time in the near future to do that. I think this will be the best way to fix these problems.
This matches my experience of Firefox on Linux (nixos).
Right now I’m not sure. Biggest problem for me is I can’t reproduce it. So if you can reliably reproduce it and feel comfortable with debugging it on the code level I’d appreciate if you did. But that’s a big ask…
Would it be helpful for you to have access to an instance where the issue exists? I do not mind granting access and compensating you for your efforts toward this.
I also found a new issue after testing yesterday:
If I slide the task in the gantt view, OR open it, then save it - the date is actually changed by -1 that I set. I realize that was a bit rough to understand. I’ll try to state the workflow more clearly:
Create a List
Create a Task “A”
Go to Gantt view and Select “Show tasks which don’t have dates set”
Move Task “A” to set an arbitrary date range May 31 - July 4th
Reselect LIST view.
Reselect Gantt view
Witness Task “A” is now date ranged May 30 - July 3rd
In Microsoft Edge, I’ve noticed the dat display doesn’t appear to be wrong as it is on Firefox. BUT, the date change issue is also persistent there.
If that works for you, yes, I’d love to. At least that would help me verifying whether the problem is related to a browser / os problem or something else.
I can’t exactly reproduce what you describe but it does not really work as I intended it.
Please let me know the best method to interact with you directly/off-site so we can coordinate your efforts. I am happy that if we can resolve the problem it will have a great benefit to the community too.
Check out the repo: git clone https://kolaente.dev/vikunja/frontend.git
Change into the directory you just cloned: cd frontend
Check out the branch of the PR: git checkout feature/ganttastic
Build the container: docker build . -t vikunja-frontend-with-new-gantt-chart
The -t parameter sets the tag name which you can then use to reference the image in e.g. docker-compose configs. Just swap vikunja/frontend with vikunja-frontend-with-new-gantt-chart restart the stack and you should be good to go.