Hi Sahara,
I believe your instance server is in another country and hence you are getting value of that timezone.
Please do refer following code for your reference that you can use to return your timezone code in c#.
public int? RetrieveCurrentUsersSettings(IOrganizationService service)
{
QueryExpression queryExpression = new QueryExpression("usersettings")
{
ColumnSet = new ColumnSet(new string[] { "timezonecode" })
};
FilterExpression filterExpression = new FilterExpression();
filterExpression.Conditions.Add(new ConditionExpression("systemuserid", ConditionOperator.EqualUserId));
queryExpression.Criteria = filterExpression;
Entity currentUserSettings = service.RetrieveMultiple(queryExpression).Entities[0].ToEntity<Entity>();
return (int?)currentUserSettings.Attributes["timezonecode"];
}
public DateTime RetrieveLocalTimeFromUTCTime(DateTime utcTime, int? timeZoneCode, IOrganizationService service)
{
DateTime localTime;
if (timeZoneCode.HasValue)
{
LocalTimeFromUtcTimeRequest localTimeFromUtcTimeRequest = new LocalTimeFromUtcTimeRequest()
{
TimeZoneCode = timeZoneCode.Value,
UtcTime = utcTime.ToUniversalTime()
};
localTime = ((LocalTimeFromUtcTimeResponse)service.Execute(localTimeFromUtcTimeRequest)).LocalTime;
}
else
{
localTime = DateTime.Now;
}
return localTime;
}
ttidbit.blogspot.com/.../crm-timezone-codes.html