Blog entries for category "windows":

Syndicate content

.NET time-travel or the lost hour of DST

Keywords: , , .

Every year again comes the DST change...

And every year again .NET developers get confused about a whole hour mysteriously missing from their logs. Others, in contrast, seem to experience an unwelcome déjà vu and to encounter things twice.

In this brief article I discuss how the DateTime type causes many of these problems and give a few tips on using the DateTimeOffset type to avoid most of the problems associated with DateTime in the context of DST transitions.

                                                                                                                                                                                                                                                                                       

The pitfalls of time zone naming conventions

Keywords: , , .

Do you know why "Greenwich Standard Time"-zone has no daylight saving time? And why "US Eastern Standard Time" does not actually apply anywhere on the Atlantic coast of the United States? In this brief article I talk about the pitfalls of name IDs in the Windows time zone database and about what to look out for when doing time zone programming under .NET.

                                                                                                                                                                                                                                                                                       

Windows forces Guest user login when connecting through a local network

Keywords: , .

This took me ages to find out, so here is the solution for the benefit of everyone who is having a similar issue:

Problem:

In a local Windows-based network you are trying to connect to a machine (e.g. in order to browse its local file storage). When connecting, it offers you to connect as Guest user only and does not offer you the option to connect as a local user of the target machine (which is what you would normally want).

Solution (in brief):

In your local security settings, find the policy for "Network access: Sharing and security model for local accounts" and set it to "Classic – local users authenticate as themselves".

Step by step solution: