openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

DateTimePicker: Display bug . instead of : when data binding (datatype date) on value instead of dateValue

Open denisw160 opened this issue 3 years ago • 1 comments

OpenUI5 version: 1.103.0

Browser/version (+device/version): Google Chrome 103.0.5060.114 (same problem in Edge and Safari)

Any other tested browsers/devices(OK/FAIL): FAIL (I think the problem is not browser related)

URL (minimal example if possible): https://openui5.hana.ondemand.com/entity/sap.m.DateTimePicker/sample/sap.m.sample.DateTimePicker

User/password (if required and possible - do not post any confidential information here): none

Steps to reproduce the problem:

  1. Open the URL https://openui5.hana.ondemand.com/entity/sap.m.DateTimePicker/sample/sap.m.sample.DateTimePicker
  2. Open the popup menu for sample "DateTimePicker using DataBinding"
  3. In the popup the hours, minutes and seconds are not separated by : the UI show . (samples from above works)

What is the expected result? hours, minutes and seconds should separated by : instead of .

Bildschirmfoto 2022-07-08 um 18 10 20

What happens instead? The separation is by .

Bildschirmfoto 2022-07-08 um 18 07 43

Any other information? (attach screenshot if possible)

Change this

<DateTimePicker
		id="DTP5"
		value="{path:'/dateValue', type:'sap.ui.model.type.DateTime', formatOptions: { style: 'medium', strictParsing: true}}"
		class="sapUiSmallMarginBottom"/>

to

<DateTimePicker
		id="DTP5"
		dateValue="{path:'/dateValue', type:'sap.ui.model.type.DateTime', formatOptions: { style: 'medium', strictParsing: true}}"
		class="sapUiSmallMarginBottom"/>

When you use the dateValue for the binding with a date type, then it is ok.

denisw160 avatar Jul 08 '22 16:07 denisw160

Hello @denisw160 ,

Thank you for sharing this finding. I've created an internal incident 2280136834. The status of the issue will be updated here in GitHub.

Regards, Todor

Todor-ads avatar Jul 18 '22 08:07 Todor-ads

Fixed with fba46983ca8d438a50f3f1b1de62ae9afc719e89 and included in UI5 version 1.106 and above

flovogt avatar Dec 15 '22 11:12 flovogt