Missmatch date and time with time zone in ektron - iis

An ektron site is hosted in server following IST time zone. when the user come from out of IST and tries to edit or create document, then corresponding history is updated with IST as same.

Related

Botframework - NodeJS - Adaptive Card - Input.Time

I have a azure botframework chatbot running in MS Teams. I got a scenario to show adpative card to user and ask for Date, Start Time and End Time. I'm using Input.Date and Input.Time pickers.
Issue is, in sql server we have UTC timezone. But in adaptive card, users might choose time based on their timezone. Is there any way I could convert this selected time to UTC timezone ?
I mean, if they choose Start Time as 8AM and End Time as 10AM (IST), I should get 2.30 AM - 4.30AM (UTC).
Below is the context.activity object
{"text":"book ticket","textFormat":"plain","type":"message","timestamp":"2022-05-17T07:20:18.165Z","localTimestamp":"2022-05-17T07:20:18.165Z","dfFBCQ","name":"User A","aadObjectId":"6f0b02-7e1d-4876-9278-0991e8fa763b"},"conversation":{"conversationType":"personal","tenantId":"aee6-xxx-xxx739ff24f","name":"teams-bot"},"entities":[{"locale":"en-US","country":"US","platform":"Web","timezone":"Asia/Calcutta","type":"clientInfo"}],"channelData":8.1659492+05:30","callerId":"urn:botframework:azure"}
Please let me know if any informations required.

DateTime field value inside the SharePoint remote event receiver is different than the one the user enters

I am working on an online SharePoint site collection, which have the following regional settings:-
and I hosted a remote event receiver inside azure web app,where the remote event receiver will get fired when adding/updating list item. now inside the remote event receiver i have the following code to get a DateTime value named ApproveDate:-
DateTime approveBy = (DateTime)projectItem["ApproveDate"];
but if the user enter a value for the ApproveDate equal let say 30/09/2020 inside the SharePoint form as follow:-
then the DateTime value inside the remote event receive will be 9/29/2020 8:00:00 PM instead of 9/30/2020 00:00:00 AM.. so why i am facing this issue? is this because the azure web service have different time zone compared to the SharePoint site? and how i can fix this?
I think this is no problem.
Assuming that the time zone of our web application server IIS is UTC time, then the parameter time passed by your SharePoint is 9/30/2020 00:00:00 AM, and the IIS server time to the web should be minus 4 hours. The time stored by the IIS server is correct. When the front end needs to return, it is UTC+4 hours.
For our program, we should get the parameters of the Sharepoint part of the front-end page, such as time zone and other information, and then we can do the corresponding processing in the code when we return.

NLP timezone issue

Currently i am using Bot Framework with Node for my chat bot and i am using API AI as my Natural Language Processing.
My question is, let say the user replied with "yesterday" or "today" or "tomorrow" and it is base on the server time. Now, it will go wrong if a person in Australia says today at 6 AM in the morning and their time which is in GMT will still be previous day and this gives a wrong date.
May i have suggestion on how do i solve this timezone issue?
Each API.AI agent has a default time zone setting which can be altered in your agents settings (documentation here) which will be used to determine the meaning of user's date/time queries like "tomorrow" and "yesterday" and "3pm":
If you're using API.AI's /query API you can send the timezone parameter in the request JSON to indicate what timezone the user you are sending the request on behalf of is in.

How does Acumatica calculate LastDateTimeModified

I have recently noticed that retrieving the LastDateTimeModified (through the WebService API) from Acumatica gives me the date and time in a very different time zone - I am guessing GMT time.
However when I view this through a Generic Inquiry it seems that it is showing the correct time - based on my Time Zone set up in the user profile.
Is there a way to get the LastDateTimeModified in the correct time zone when retrieving from the Web Service API. I have attempted changing the Time Zone for the SDK user with no success
Thanks,
G
For most screens, except a few CRM screens, the LastDateTimeModified and CreatedDateTime are stored in the same time zone as the database server machine. When reading it using web services, you are retrieving the raw value form the database, with no timezone conversion. It is up to you to convert it to the desired timezone.
The Help->Audit History panel does a manual conversion to the current user time zone. I have not been able to get the generic inquiry to show the time as you mention in your question; it is only showing the date.

CRM 2011 synchronized records timestamp

Our CRM 2011 on-premise setup is such that users create records offline (using Outlook CRM client) and then synchronize them to the server once they are online.
Is there column that timestamps when a particular record (e.g., a sales order) was synchronized to the server? I know I can look at the CreatedOn column, but I can't tell if that is the time when the record was created on the user's machine, or on the server?
You should look at the ModifiedOn field. It will be set to the UTC time when the record was last modified. In the case of a newly created record, that has not been updated, ModifiedOn will equal CreatedOn. Those values are set by the server clock.
I don't recommend ever relying on the local system clock to match the server clock. Do a retrieve of the record from the server and compare the ModifiedOn to the locally stored record to determine if it has been updated.
You can also do a MAX(ModifiedOn) of local records and then query the server for all records with a ModifiedOn greater than the max.

Resources