@@ -63,8 +63,7 @@ namespace Fort23.Core
var networkTime = await NetworkTime.GetNetworkTimeAsync();
if (networkTime.HasValue)
{
- long networkMs = (long)(networkTime.Value - new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc))
- .TotalMilliseconds;
+ long networkMs = networkTime.Value.Ticks / 10000;
if (!IsNetworkTimeReady)
@@ -37,6 +37,7 @@ namespace Fort23.Mono
}
AccountFileInfo.Instance.playerData.daoYouGuaiJiDatas.RemoveAll(p => p.isLeave && p.items.Count <= 0);
+ AccountFileInfo.Instance.SavePlayerData();
widgets.Clear();