I need to get the TimeZone and its Bias for the current user in CSOM.
If I read the siteuserinfolist for my current user, I get a TimeZone field with a ushort ID.
is SSOM, I can use SPRegionalSettings with this ID
is CSOM, TimeZoneInfo.GetSystemTimeZones uses a String ID (like the timezone title !)
Any idea how I can get the Bias of the current user in CSOM ?
THANKS !
Related
Currently, need to get a user's office location and then convert that into a time zone, or is there a way to obtain the user's time zone Graph?
Mailbox settings has a timezone property.
https://graph.microsoft.com/v1.0/me/mailboxsettings
According to your descriptions, I assume you want to get the user's time zone by Graph.
In this document, we can get the user's mailbox Settings. We can use the API like this:
GET /me/mailboxSettings/timeZone
or
GET /users/{id|userPrincipalName}/mailboxSettings/timeZone
It will return the user's mailbox time zone settings. The response like this:
{
"#odata.context": "https://graph.microsoft.com/v1.0/XXX/mailboxSettings/timeZone",
"value": "China Standard Time"
}
I'm facing one issue in my MVC application. In one module I'm using kendo-ui grid (Ex. #(Html.Kendo().Grid(Model))). Issue is, its change the DateTime object value when it render on the web browser. Ex. If my DateTimeobject value on server side is '2016-09-20 00:00:00' and when it renders on the browser then this value becomes '2016-09-20 05:30:00' (India time zone +5:30), on client side rendering DateTime object value add the time zone value of the user's browser. so my DateTime object value is changed and I do not want to change it. Is there any solution available for this kind of problems?
The date values are changed by the browser, because JavaScript Date objects are represented in the local time zone. The workaround is to use UTC:
http://docs.telerik.com/kendo-ui/aspnet-mvc/helpers/grid/how-to/utc-time-on-both-server-and-client
I have a date field in my document and I would like to set the last updated time of the document, or the time on which a particular event had occurred in the document. My document will have both signers and counter signers as well.
I am developing my application using Rails and I am using the Docusign REST GEM.
You can retrieve the envelope's history and audit events through the audit events API, then once you have your date you can simply set the value of your dateTab using the tab's value property.
NOTE: Make sure you use dateTabs and not dateSignedTabs. Date signed tabs are populated by the platform, based on the date that recipient signs the document.
How can I get the current timezone name in Delphi ?
I mean, not the timezoneinfo, that I get via "getTimeZoneInformation"
but the name (as defined in the registry) of the current timezone,
that is, the current subkey of hklm\software\microsoft\windows nt\currentversion\timezones ?
Regards
Maurizio
I'm trying to convert some dates that I have stored on the server (in UTC). I'd like to convert them to the user's time so it would be pretty for their time zone.
However, I'm not sure about how to go about doing that. What's the best practice to get the user's timezone from the request in the controller?
The timezone is not passed in the request headers. If you had the users time zone stored in a profile setting then you can easily format the date according to this but its not something you can just grab from the request. There are ways to do this in JavaScript.