ProgressNS / nativescript-ui-feedback

This repository is used for customer feedback regarding Telerik UI for NativeScript. The issues system here is used by customers who want to submit their feature requests or vote for existing ones.
Other
115 stars 21 forks source link

Time Picker Only Display UTC format #533

Closed horeyes closed 5 years ago

horeyes commented 6 years ago

Please, provide the details below:

Hello, I'm trying to use the RadForm TimePicker Editor initialized with a new Date class. The time in the TimePicker seems to be using a UTC format when I need the local time format from the device.

Did you verify this is a real problem by searching Stack Overflow?

Yes, but I did not find any useful information.

Tell us about the problem

When the RadDataForm Time Picker Editor is initialized with a Date. The time format appears to be UTC which doesn't match the device time.

Which platform(s) does your issue occur on?

Android

Please provide the following version numbers that your issue occurs with:

"nativescript-pro-ui": "^3.4.0",

Please tell us how to recreate the issue in as much detail as possible.

  1. Start the application ..
  2. Look at the time from the time picker and the device time.

Sample Project

PlayGround link: https://play.nativescript.org/?template=play-ng&id=ORgfqi

NSPlayground (1).zip

Screenshot

screenshot_20180216-222735

joey0xx commented 6 years ago

+1 having the same problem

joey0xx commented 6 years ago

Had to do a workaround by changing the property that was binded to the timepicker in the dataform to be of type string and assigning it new Date().toLocaleTimeString().substr(0, 5))

jvelezc commented 6 years ago

1+ same problem

zbranzov commented 5 years ago

The fix is released in nativescript-ui-dataform@3.8.