Setting time/date on the computer (OpenInsight 32-Bit)
At 01 DEC 2010 10:25:22PM Steve Epstein wrote:
Is there any way from OI to programmatically set the time/date on a computer?
At 02 DEC 2010 08:34AM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:
http://msdn.microsoft.com/en-us/library/ms724942%28VS.85%29.aspx
World leaders in all things RevSoft
At 02 DEC 2010 08:44AM Jared Bratu wrote:
Why set the time/date? If you're trying to change the time to adjust for time zones I'd recommend not setting the time/date but rather changing the time zone.
Unless your application is a computer management tool I think you would only have trouble. Date/Time calculations should be done using existing libraries provided by the operating system. Doing clock manipulation can lead into trouble when you consider daylight savings time, leap years, and time zones.
Most windows networks with an active directory domain controller have a synced time to keep the domain consistent.
Setting the time may also require process escalation and local administrator rights on the workstation.