I have the ntp time package. How can I set the zime zone on a wince 5.0 device to GMT in VB?
The NTP protocol does not deal with time zones at all. This is why the current version of Rebex Time component includes no such functionality as well.
Fortunatelly settings of time zone should be quite easy.
Please note that .NET CF loads the TimeZoneInformation into the AppDomain during creation. You may need to restart your app after setting the time zone. For details see
P/Invoking SetTimezoneInformation() causes DateTime.Now to return an incorrect local time
If you need an actual VB.NET code for P/Invoking SetTimeZoneInformation please let me know by adding a comment to this answer.
Welcome to Q&A forum for C# and VB.NET developers working with following .NET components:
If you need immediate assistance, please contact us directly.