Powerapps date and time SharePoint timezone issue - sharepoint

I have a SharePoint list with a customised PowerApps form. There is a date and time field and I would like to capture the exact date and time that the user enters in the field, independent of the time zone the user is based in. My SharePoint site regional settings is UTC but when users from EST enter 9:00 on the PowerApps form, it is saved as 5:00 on SharePoint. I do not want these conversions to take place. Can someone please assist me with this.
Thank you.
SK

Check out the Converting to UTC section here: https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-dateadd-datediff
using the TimeZoneOffset() to convert all the times to UTC no matter the user's location.

Related

Powerapps time values reflecting incorrectly (often just set to default) when adding or pulling from a Sharepoint List of Date and Time values

I have a list in Sharepoint that includes the following snippet:
When I use a gallery in Powerapps, and link this list to it, the date and time display shows a different value for the time. For example, entry number 1's date and time look like this: 07/01/2022 19:40.
So the date has been converted to something else.
I don't know how to address it. Can anyone help?
Good question!
Sharepoint actually saves your times in UTC. This means that once PowerApps loads that time and corrects it to your time zone, the date and time could be different.
https://learn.microsoft.com/en-us/previous-versions/office/sharepoint-csom/jj164700%28v%3doffice.15%29
Basically, you take the UTC time and add your local time difference, that gives you the correct one :)

Passing Date value to NetSuite via API

When populating a date field in NetSuite via the API (e.g Sales Order start date), you are required to specify a timestamp + timezone, even though the timestamp isn't shown in NetSuite.
Does anyone know the logic NetSuite is using to covert a date+timestamp to a date?
For example, sometimes when I pass a date+time of Oct 1 2016 00:00:00 UTC, I see Sept 30 2016 in NetSuite. Other times, I see the date appear as Oct 1 2016 in NetSuite. The logic seems inconsistent. Can anyone explain the logic?
For me it depended on my timezone, and the timezone of the account that was writing to NetSuite.
I had this issue in the past. I resolved it by setting my Integration user account to have GMT timezone. After that, the dates/times have always appeared correct for each user, based on their timezone (set in preferences).
the date you submitted is converted from logged-in user's timezone, to server's timezone. it's saved with the server timezone.
so depending on the difference between timezones of session user and server, yes it can even change the date by conversion.

CRM2011 Appointment end time value different between form and database when all day event checked

there is a check box - All Day Event - in appointment form, if check it, the end time got problem, for example, in the form end time is "2013-05-22", but in the database the value is "2013-05-23"; There is no issue if all day event is unchecked. Anyone knows why?
EDIT:I saw your screenshot, 5/23/13 12:00 AM is midnight, so the time is correct.
CRM 2011 stores the datetime values in UTC format, when you read the values directly from SQL or Web Services you need to convert to the localtime value.

Infopath 2010: date and time picker action if time is over 18:00 any date

As the title says i have a infopath form where i want to run a extra action on submit if the time is greater than 18:00 but it can be any date.
I tried using 2 separate fields but that upset SharePoint (the data goes into a SharePoint calender hence not using 2 separate fields)
Thanks for your help
Lewis

Default current time to Eastern Standard time

I have an Infopath form (linked to a sharepoint 2010 list) that contains a text box field that shows the current time. My problem is that some of my target users are working in different time zones and I want the field to calcualte the current time in Eastern Standard time.
Im currently using this formula as the default value for the text box:
substring-after(now(), "T")
Is there a way to manipulate this function to show the current time in EST. If not, then im open to any suggestions.
Thank you,

Resources