We are facing platform specific issue to show task in “Hours” format.
For e.g : Creating 1 task with start Date : 10-09-2018 10:00 & End Date : 10-09-2018 16:00.
If we create this task on windows system it shows single vertical line instead on 6 hrs block.! Please check attachment
If same task we create from linux it will show exact 6 hrs block.
Please give advise.
It is hard to suggest what might be the cause without knowing your configuration and code.
I need a sample of your code to see what might be wrong. You can modify the following snippet:
After you edit the code and see that it reproduces the issue, click on the “Share” button and copy the link for the snippet.
Issue is reproduced on windows machine.Were as same working on Linux machine.
If you expand 736 Job their are 2 activities - 1 with 6 Hrs & 2nd will be for 2 days.
So 6 hrs activity showing single line instead of 6 hr block on windows 7.
Please find attachment.
Shared following snippet:
Also please find attached
Linux gantt chart Image with same data.
Thank you for sending the snippet. I see the same line with 0 duration even on the Linux PC.
Looks like you have non-integer duration so Gantt rounds it:
Task 736 doesn’t have the duration, that’s why it is not possible to drag it.
If you refresh the page, you should see different duration if you have default config (like you send in the snippet).
But I think that you customized the configuration because it is not possible to resize the task less than 1 but more than 0.
Also, when you change scales to hours, days and months, you can change the duration unit. This will help you to resize tasks correctly and save that information in the database.
Here is an example:
Once again, I don’t know your configuration so maybe you will need to add something else.
Thank you for quick response. Let me check the configuration. Will get back to you.
I agree that Gantt rounds non-integer value. But why it is showing 6 Hrs block on linux & not on windows?
Because if it is rounding off the duration then it should show single line on linux as well.
It should display the same single line on Linux. Have you tried refreshing the page?
If it stays the same, you can try opening the page in another browser and see how it works there on Linux.
If it stays the same, then it might be related to the configuration (and maybe to the timezones, but we need to check it first). You can include your configuration in the snippet so that I can reproduce it with the configuration.
Ya you right. If I try to open the page into another browser(i.e. Firefox) it’s showing me single line. Where as in crome browser its showing me complete block.
What will be the solution?
Have you try the following method?
when you change scales to hours, days and months, you can change the duration unit. This will help you to resize tasks correctly and save that information in the database.
Here is an example: