5 Replies Latest reply on Apr 30, 2015 2:59 PM by Eugene Lee

    AFTimeZone.ToLocalTime function is not functional at all when I try to convert a UtcTime to the local server time with the correct AFTime zone.


              Dim myAFSystem As PISystem

              Dim myTimezone As AFTimeZone = myAFSystem .ServerTimeZone

              Dim timeToConvert As DateTime = New DateTime(2015, 3, 7, 23, 0, 0, 0, DateTimeKind.Utc)


              Dim newTime As DateTime = AFTimeZone.ToLocalTime(tz, timeToConvert.LocalTime)


      The myTimezone is returned correctly to Altantic time zone but newTime returned is still the same as timeToConvert ,


      Can anyone help on this please?