web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Incorrect Date in CDS ...
Power Pages
Unanswered

Incorrect Date in CDS table

(0) ShareShare
ReportReport
Posted on by

Hi,

 

I have a portal being used by external customers. The portal page has a form users use to create new records in my CDS table.

I have a custom logging software installed on the page that allows me to see the exact actions taken by the user on the page.

There are a number of date fields on the page, their date type in CDS is set to 'date only'

When a user selects a date on the form and submits the form, the date saved in the CDS table is always one day before what the user chose. Any idea what is going on here??

 

Thanks

Sam

Categories:
I have the same question (0)
  • ragavanrajan Profile Picture
    7,044 Most Valuable Professional on at

    Hi @Anonymous 

     

    Looks like the date format time zone conversion settings needs to be changed. 

     

    Please check the below official docs

     

    https://docs.microsoft.com/en-us/powerapps/maker/portals/configure/behavior-format-date-time-field 

     

    You can also override the default date/time format to be used on portals by creating the following site settings:

    • DateTime/DateFormat: The date format used on the portal.
    • DateTime/TimeFormat: The time format used on the portal.
    • DateTime/DateTimeFormat: The format for full date and time used on the portal.

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

     

  • Community Power Platform Member Profile Picture
    on at

    @ragavanrajan Thanks for the quick response.

    According to that documentation, we should be using the Date Only type which we already are.
    Per the doc: "The time portion of the value is always 12:00 AM. The value entered by one user is seen the same by other users in different time zones"

     

    Yet the data that I have doesnt align with that explanation. See the following field called 'DOB'
    It is set to date only:2021-08-25_19-48-22.png

     

     

    Yet the values show with different times and for the wrong date. All these values were selected as one day ahead on the form

    2021-08-25_19-48-41.png

     

     

  • Community Power Platform Member Profile Picture
    on at

    @ragavanrajan I understand what you mean now, under advanced settings these fields were set to 'User Local'. We will update to 'Date Only'

     

    But im still trying to understand the logic here. How does it choose the time it sets? You can see from my example that the time is always set on the hour but sometimes a different hour. Basically I need a way to figure out which of these records are actually incorrect and which are correct. If they are all incorrect then I will have to go back through the database and mass update them all but I need a way of confirming this first. Any ideas? 

     

    Thanks

  • Community Power Platform Member Profile Picture
    on at

    I have found in the CDS table there is a field called 'Time Zone Rule Version Number'

    There seems to be a correlation between this number and if my dates are correct or not.

    For those with the version number of 4 the dates are correct. When it equals 0, they are incorrect. This is at least what it seems like to me but I dont have any way of checking it with all the data so I need some confirmation that this is correct before I go and fix everything.

     

    Found this reference: https://joshimandarblog.wordpress.com/tag/timezoneruleversionnumber/

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Jerry-IN Profile Picture

Jerry-IN 71

#2
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard