Issues with localtime
Hi I am running C language localtime() and C# DateTime.ToLocalTime() in the same XP machine. This ways the TZ is the same. Even so, the result is not the same. What I see is that C localtime() makes...
View ArticleIssues with localtime
Hi CarlaodotNet uses the settings from the OS and the Mainboard to get the time and returns you the time accoording to your local settings in your OS.The DateTime is nothing more then a struct based on...
View ArticleIssues with localtime
The value I get with C is the correct. I already tried the following: 1. run C app and C# app and the resulting value is different in 3 hours. 2. run C app and store the result 3. get the X long value...
View ArticleIssues with localtime
Hi codevanced I already tried this solution but the value is not the same as with localtime C language.Net Senior Developer
View ArticleIssues with localtime
TimeZone.CurrentTimeZone.ToLocalTime(date); (The date being converted from should be in UTC)codevanced.net Internally the DateTime.ToLocalTime() makes a call to the TimeZone's method.Ganesh Ranganathan...
View ArticleIssues with localtime
Have you tried setting the TZ variable to the correct timezone manually? Which one gives the correct local time, the C or the .NET application?Ganesh Ranganathan [Please mark the post as answer if it...
View ArticleIssues with localtime
TimeZone.CurrentTimeZone.ToLocalTime(date); (The date being converted from should be in UTC)codevanced.net
View ArticleIssues with localtime
I am using C# for Visual Studio 2008 with .Net Framework 2.0. I have a scenario where I am trying to figure out what is going on. I have an C ANSI application that uses localtime(). I have a date X....
View Article