Esempio n. 1
0
 /// <summary>
 /// utc转北京时间
 /// </summary>
 /// <param name="dt"></param>
 /// <returns></returns>
 public static DateTimeOffset UTCToBeijingTime(this DateTimeOffset dt)
 {
     return(dt.AddHours(8));
 }