Skip to main content
Version: 5.7.0

UpdateTimezoneOffset

Sets the user's timezone offset.

ServiceOperation
playerStateUPDATE_TIMEZONE_OFFSET

Method Parameters

ParameterDescription
timeZoneOffsetThe numeric timezone offset of the user

Usage

http://localhost:3000
int timeZoneOffset = -2;
SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.PlayerStateService.UpdateTimeZoneOffset(timeZoneOffset, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": {
"timeZoneOffset": -2
}
}