Closed horeyes closed 6 years ago
+1 having the same problem
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))
1+ same problem
The fix is released in nativescript-ui-dataform@3.8.
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.
Sample Project
PlayGround link: https://play.nativescript.org/?template=play-ng&id=ORgfqi
NSPlayground (1).zip
Screenshot