I see nothing wrong in what you are doing. Its just that, when you use SetSystemTime(), the time set is UTC - not your local time. So, in order to set your local time, then you need to calculate the difference between your local timezone and UTC (use Offset class to calculate the difference like Offset diff = DataTime.Now - DateTime.UtcNow). Once you know the time difference, update the hours and minutes by the Offset.Hours, Offset.Minutes and you will get the correct local time set. Hope that helps!!
S
Sujeevan Kumar
@Sujeevan Kumar