20210918 单点登陆修改

This commit is contained in:
2021-09-18 13:26:51 +08:00
parent c0798d8358
commit 04b926db45
7 changed files with 40 additions and 58 deletions
+6 -2
View File
@@ -1137,9 +1137,13 @@ namespace BLL
/// </summary>
/// <param name="timestamp"></param>
/// <returns></returns>
public static DateTime IntToDateTime(int timestamp)
public static DateTime IntToDateTime(long timestamp)
{
return TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1)).AddSeconds(timestamp);
var date = TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1));
date = date.AddMilliseconds(timestamp);
return date;
//return TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1)).AddSeconds(timestamp);
}
}
}