/// <summary> /// 获取服务器时间 /// </summary> /// <returns></returns> public DateTime GetDBTime() { DateTime now = DateTime.MinValue; try { now = _usersDao.GetDBTime(); } catch (Exception ex) { //写入Log日志 // return(Convert.ToDateTime("1900-01-01")); } return(now); }