'Pre-requisite: a long variable named UTCTime that contains the time in ticks needing conversion
Dim oldOffset As Double = DateTime.TimeZoneOffset
Dim jo As JavaObject
jo.InitializeStatic("java.util.TimeZone")
Dim jo2 As JavaObject = jo.RunMethodJO("getTimeZone", Array As Object ("CST"))
'Getting the offset in milliseconds and converting it to hours for DateTime's SetTimeZone method
Dim newOffset as Double = jo2.RunMethod("getOffset", Array As Object (UTCTime)) / (1000*60*60)
DateTime.SetTimeZone(newOffset)
Log(DateTime.Time(UTCTime))
DateTime.SetTimeZone(oldOffset)