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

  • Home
  • SEARCH
  • 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

Basically the subject says it all: We have a couple of components running on
I'm using the GL class from JOGL, which basically contains all OpenGL functions. Now
Basically I have a WPF application that will display announcements to the user within
I want to package a piece of code that absolutely must run on Java
I stumbled on a piece of Ajax code that is not 100% safe since
This is driving me nuts! A little piece of code that I can't seem
The question says it all basically. I want in a class MyClass to listen
Basically, something better than this: <input type=file name=myfile size=50> First of all, the browse
The topic generically says it all. Basically in a situation like this: boost::scoped_array<int> p(new
The following seems strange.. Basically, the somedata attribute seems shared between all the classes

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.