修改设备/变量 初始时间为unix
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<LangVersion>11.0</LangVersion>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<Version>5.0.3.1</Version>
|
||||
<Version>5.0.3.2</Version>
|
||||
<Authors>Diego</Authors>
|
||||
<Company>Diego</Company>
|
||||
<Product>Diego</Product>
|
||||
|
@@ -45,7 +45,7 @@ public class DeviceRunTime : Device
|
||||
/// 设备活跃时间
|
||||
/// </summary>
|
||||
[Description("活跃时间")]
|
||||
public DateTime? ActiveTime { get; internal set; }
|
||||
public DateTime? ActiveTime { get; internal set; } = DateTime.UnixEpoch.ToLocalTime();
|
||||
|
||||
/// <summary>
|
||||
/// 设备状态
|
||||
|
@@ -40,7 +40,7 @@ public class VariableRunTime : Variable, IVariable
|
||||
/// </summary>
|
||||
[Description("变化时间")]
|
||||
[DataTable(Order = 2, IsShow = true, Sortable = true)]
|
||||
public DateTime? ChangeTime { get; private set; }
|
||||
public DateTime? ChangeTime { get; private set; } = DateTime.UnixEpoch.ToLocalTime();
|
||||
|
||||
/// <summary>
|
||||
/// 所在采集设备
|
||||
@@ -72,7 +72,7 @@ public class VariableRunTime : Variable, IVariable
|
||||
/// </summary>
|
||||
[Description("采集时间")]
|
||||
[DataTable(Order = 2, IsShow = true, Sortable = true)]
|
||||
public DateTime? CollectTime { get; private set; }
|
||||
public DateTime? CollectTime { get; private set; } = DateTime.UnixEpoch.ToLocalTime();
|
||||
|
||||
/// <summary>
|
||||
/// 设备名称
|
||||
|
Reference in New Issue
Block a user