openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

GanttChart (Timezone?) Bug

Open Myge91 opened this issue 9 years ago • 5 comments

Hello there,

I have found an issue with the GanttChart.

When I drop a shape close between two dates (e.g. 24.03. and 25.03.) and I want to drop it around 25.03. 00:45 the shapestart will be rendered on the 24.03. 23:45. I have recorded the bug:

https://www.youtube.com/watch?v=MmnbtXHKMRw&feature=youtu.be

You can reproduce this bug here:

https://sapui5.netweaver.ondemand.com/#/sample/sap.gantt.sample.BasicGanttChart/preview

Regards

Jan

Myge91 avatar Sep 04 '17 07:09 Myge91

Thank you for sharing your findings. The issue is forwarded internally for further investigation (ticket 1770372916). Updates will be posted in this GitHub issue.

JumpNRun avatar Sep 07 '17 14:09 JumpNRun

Hi @Myge91 I have been focusing on this issue. The solution is only to zoom in the browser. And I put the pics to illustrate. You can find the shape can be dragged to the position as you want, say around 00:45. So I think it might not be a bug. Please take a look at this.

BR, Roger

0018 0041

NIROG avatar Sep 18 '17 10:09 NIROG

Hi @NIROG ,

I still think this is a bug but not a timezone bug. I have changed the timezone to China too on my local PC and tried my test I have recorded and uploaded on YouTube. I still get the same result.

As you can see on the picture I am getting the date 20150123 from the handleShapeDragEnd event but I have dropped the shape on 24.01.2015 somewhere between 00:00-01:00. So in the variable oTargetData.mouseTimestamp.startTime is the wrong dropped timestamp.

Could there be a rounding issue when UI5 calculates the dropped time?

image

Myge91 avatar Sep 18 '17 10:09 Myge91

Hi @Myge91 Thank you for reminding. It was a bug and I found this feature enhancement has been done by our colleague, and now available in version 1.50 If possible, could you please replace the src attribute with this in the index.html like this? Looking forward to your reply!

<script 
          ... ...
          src="http://vesapui5.dhcp.wdf.sap.corp:8080/sapui5-dist-1.50/resources/sap-ui-core.js">
          ... ...
</script>

NIROG avatar Sep 19 '17 07:09 NIROG

Hi @NIROG ,

thanks for your quick reply. Unfortunately I cannot test it because the url you provided does not work. I will wait until the 1.50 is released officially.

Regards

Jan

Myge91 avatar Sep 20 '17 08:09 Myge91