Exemplo n.º 1
0
        public DateTime?GetAirDateDt(TimeZone tz)
        {
            DateTime?dt = GetAirDateDt();

            if (dt == null)
            {
                return(null);
            }

            return(TimeZone.AdjustTZTimeToLocalTime(dt.Value, tz));
        }
Exemplo n.º 2
0
        public DateTime? GetAirDateDT(bool inLocalTime)
        {
            if (this.FirstAired == null)
                return null;

            DateTime fa = (DateTime) this.FirstAired;
            DateTime? airs = this.TheSeries.AirsTime;

            DateTime dt = new DateTime(fa.Year, fa.Month, fa.Day, (airs != null) ? airs.Value.Hour : 20, (airs != null) ? airs.Value.Minute : 0, 0, 0);

            if (!inLocalTime)
                return dt;

            // do timezone adjustment
            return TimeZone.AdjustTZTimeToLocalTime(dt, this.TheSeries.GetTimeZone());
        }