TimePicker: Possibility to show local DateTime but having UTC DateTime Property

Is it possible to use a UTC Property but show the local time?

in SFSchedule I'm able to provide a TimeZone to show correct Appointments, but when editing I'm confronted with the fact that only utc datetime i


3 Replies

SS SaiGanesh Sakthivel Syncfusion Team June 28, 2022 01:13 PM UTC

Hi Michael,


We need more information about the reported scenario from your end. Could you please share the runnable sample or reproduce the reported scenario in the simple sample from your end, which could help us to provide a better solution from our end?


Regards,
SaiGanesh Sakthivel



MI Michael June 29, 2022 08:50 AM UTC

Currently my Viewmodel contains a DateTime with the DateTimeKind UTC


this is great for backend communication and being able to show correct times in different timezones. 

Now when using the DataForm TimePicker it uses the datetime in UTC format. 

If I'm in a different timezone, then I would see an "incorrect" time.

The requirement would be a simple attribute to specify if the local time should be shown.

So that the sfdataform would show the Localtime instead of the utc time


As a workaround I created an additional property for localtime which I'm now presenting in the sfdataform.



SS SaiGanesh Sakthivel Syncfusion Team June 30, 2022 01:01 PM UTC

Hi Michael,


#Regarding DataFormTimePicker is not shown correctly

We could not replicate the reported scenario from our end. We have prepared the sample as per the information and checked the sample from our side. Please refer to the tested sample in the following locations.


Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/DataFormXamarin-2052175399


Please check the sample and let us know if you still facing the same issue? If not, please modify the sample based on your scenario and revert us back with the following details,


  • Share the issue replicate video.

  • Share the replication procedure.

  • Share the issue replicate the timezone.


It will be helpful for us to check on it and provide you with the solution as soon as possible. 
  

Regards,
SaiGanesh Sakthivel


Loader.
Up arrow icon