i'm trying to debug a problem on a SetTimeZoneInformation: in order to make the thing easier for me and for you I wrote a simple application written on C# .NET 2.0 that simply set the timezone.
I know that the bestway to set the timezone is to do it on the linux side, but i think it you should work in Wine too in order to have 100% compatibility of Windows software.
I attached here the source code and the executable.
You could try yourself: in the code i change the bias, but the time doesn't change.
This is the main part:
Code: Select all
TimeZoneInformation timeZoneInformation = GetTimeZone();
TimeZoneInformation a = timeZoneInformation;
Console.WriteLine(a.bias);
Console.WriteLine(DateTime.Now);
a.bias = 120;
a.standardName = "ciccio";
SetTimeZone(a);
timeZoneInformation = GetTimeZone();
Console.WriteLine(a.bias);
Console.WriteLine(DateTime.Now);