Hi All,
My requirement - Lets say there are two users USER A (From INDIA) and USER B (From USA). Now if USER A updates the date to 5th of July 2021 and time to 3:00PM. When USER B looks at the same record, he should be seeing his local time zone, which would be 5th of July 2021 at 4:30AM and not Exact same date (5th of July 2021 and time to 3:00PM)
I am facing issue with the date. I have a field called "first dose date" and "second dose date" with "Date only" datatype and "User Local" behavior in CDS. User is inserting that date field from model driven app as shown below in image and viewing it on portal. I am also showing other fields on portal with data and time.
Based on my date setting in CDS and from front end (I am converting the JSON date field value i.e. UTC to user's local timezone) it is not working properly.
Please suggest me some solution.
Moreover, please help to understand below thing-
When I fill "first dose date" and "second dose date" in model driven app for the first time in IST timezone it returns below data in the JSON (focus on time portion),
Later when I update the same record's "second dose date" in model driven app in same time zone the time changes as shown in the below screenshot -

How this works exactly? Based on MS documentation time portion is always 12AM.