//adds a time zone to the list public static void AddTimeZone(GameTimeZone tz) { timeZones.Add(tz); }
//gets the local time for a time in a time zone public static DateTime ConvertDateTimeToLoalTime(DateTime time, GameTimeZone timeZone) { TimeSpan delta = GameObject.GetInstance().TimeZone.UTCOffset.Subtract(timeZone.UTCOffset); return(time.Subtract(delta)); }
public static TimeSpan ConvertTimeSpanToLocalTime(TimeSpan time, GameTimeZone timeZone) { TimeSpan delta = GameObject.GetInstance().TimeZone.UTCOffset.Subtract(timeZone.UTCOffset); return(time.Subtract(delta)); }