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 4246322
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T03:57:28+00:00 2026-05-21T03:57:28+00:00

Hi all Basically I have a piece of code that reads the DateTime.Now values

  • 0

Hi all
Basically I have a piece of code that reads the DateTime.Now values into a struct. Passes the struct to a DLL to be stored, updated, etc.

I noticed only recently that when I sync my DLL with the DateTime.now values, the hour value is always 1 hour behind??? e.g. PC time = 17.20,,,, DLL Time = 16.20???

Also this code has always worked before the daylight savings occured, like always! I havnt changed anything in it, and I notice don my laptop when I select the clock, it mentions about the daylight saving hour.

Does anyone know why this is happening? please?

any help would be greatly appreciated

  • 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-21T03:57:29+00:00Added an answer on May 21, 2026 at 3:57 am

    You need to check the culture of the thread that your code runs.
    It is not necessary the current culture of your system.

    Set a breakpoint and check the value of:

    System.Threading.Thread.CurrentThread.CurrentCulture
    

    Check also the TimeZone class: http://msdn.microsoft.com/en-us/library/system.timezone(v=vs.71).aspx

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

Sidebar

Related Questions

I have this piece of code that basically checks if one or more files
I'm testing a C++ class with a number of functions that all have basically
So basically I have a PHP script that takes all the images from the
I have a piece of code that is executed by n threads. The code
I'm trying to emmulate the following: Any ideas how? Basically all photos have the
Basically I have three pages. -A page with all possible search results for example:
Hey all, basically i have an empty AS3 fla file with just the following
Basically the subject says it all: We have a couple of components running on
Basically on .show() I've been trying to have all of the inputs convert to
I have a Android Application which is basically uses WebView for all interaction.. How

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.