[quoted text, click to view] Marco Shaw [MVP] wrote:
> I've searched around in the Windows SDK. Is there a .NET class that can
> help me to change the timezone setting on a Vista machine?
>
Short answer: no. In fact, there's no way to change the system time at all
from .NET, barring P/Invoking. It's one of those tasks that's rare and
privileged, so the managed world doesn't expose it. Typically the
functionality should be centralized -- either locally and manually (the
Date and Time applet) or managed from Active Directory and/or deployed
scripts. If individual applications start messing with it, things can get ugly.
You can do it from Win32 with SetTimeZoneInformation(), and of course you
can import and call that from C#, but there's no managed equivalent.
--
J.