public static DateTime GetSessionTime(this Session session, ConfDay day) { var shortDate = day.Date.ToString("MM-dd-yyyy"); return DateTime.Parse(shortDate + " " + session.Hour); }
public static void SetDay(ConfDay day) { var key = string.Format("__conf_day{0}", day.Id); AddToCache(key, day, DateTime.Now.AddHours(12)); }
public static DateTime ToAttendeeTime(this Session session, ConfDay day) { var sessionTime = GetSessionTime(session, day); var pstZone = TimeZoneInfo.FindSystemTimeZoneById("Pacific Standard Time"); return TimeZoneInfo.ConvertTimeToUtc(sessionTime, pstZone); }