Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6010791
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:10:01+00:00 2026-05-23T02:10:01+00:00

I need a real time zones guru help! My goal is to write a

  • 0

I need a real time zones guru help!

My goal is to write a tool (in .Net) that would show datetime values from SharePoint DB with a selected timezone offset. I’ve found that SharePoint keeps datetime values as UTC in its DB. It shows them with a timezone offset, that is stored as int (0 .. ~50). A little investigation showed the int value is CDO code. There is no way to convert a CDO code except manual mapping, written by me, based on different sources.

Now, I have a failed unit test with the following values: CDO is 34, time in UTC is 2011-05-26 14:55:00. From GUI side, the timezone looks like ‘(GMT-05:00) Indiana (East)’. In my map 34 corresponds to “US Eastern Standard Time” timezone id.

var id = "US Eastern Standard Time";
var zone = TimeZoneInfo.FindSystemTimeZoneById(id);
Console.WriteLine(zone);
Console.WriteLine(zone.StandardName);

The result is:

(GMT-05:00) Indiana (East)
US Eastern Standard Time

Looks like it’s OK, both are ‘Indiana (East)’. Now, I use the zone to convert the value:

var dateTime = new DateTime(2011, 05, 26, 14, 55, 00);
var converted = TimeZoneInfo.ConvertTimeFromUtc(dateTime, zone);
Console.WriteLine(converted);

And the result is 26.05.2011 10:55:00. But SharePoint shows it as 26.05.2011 09:55:00! That’s why my unit test has been failed. I’ve discovered timezoneconverter.com online tool. It has no way to set a timezone as CDO or .Net timezone id, so I had chosen ‘America/Indiana/Indianapolis’:

14:55:00 Thursday May 26, 2011 in UTC converts to
10:55:00 Thursday May 26, 2011 in America/Indiana/Indianapolis

My converter has the same result. Then I chose ‘America/Indiana/Knox’:

14:55:00 Thursday May 26, 2011 in UTC converts to
09:55:00 Thursday May 26, 2011 in America/Indiana/Knox

Google Maps service shows Knox is located more to the west, so it looks normal.

Definitely, SharePoint uses the last timezone. But HOW? Is there an additional flag to CDO code that helps to find a more appropriate Knox timezone? What is the zone? What is its id? I’m living outside the US, so I’m almost gone crazy with the zones.

Thank you,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T02:10:02+00:00Added an answer on May 23, 2026 at 2:10 am

    If you face a problem that looks like mine (a timezone that seems working incorrectly), the answer is: TRY ANOTHER TIMEZONE. For instance, I’ve found that “SA Pacific Standard Time” is what I need.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a flex application and need to show the real time data into
I'm looking to write a Twitter application, and I need to get real time
I need to develop a real-time monitoring solution. there is a data source that
I really need your help with this. We are planning on developing a real-time
I need to add a real time dashboard of data to a ASP.NET MVC
I have a logging table that I need to run close to real time
I want to write a real-time analysis tool for wireless traffic. Does anyone know
I am implementing a system where I need real-time updates. I have been looking
I need to display a real time data from MS SQL 2005. I saw
I need to do an object recognition in real time (with image coming from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.