AnsweredAssumed Answered

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.

Question asked by yyang on Apr 29, 2015
Latest reply on Apr 30, 2015 by Eugene Lee

        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?