Showing
1 changed file
with
3 additions
and
2 deletions
... | ... | @@ -14,6 +14,7 @@ import javax.validation.Valid; |
14 | 14 | import javax.validation.constraints.NotEmpty; |
15 | 15 | import java.time.Instant; |
16 | 16 | import java.time.LocalDateTime; |
17 | +import java.time.ZoneId; | |
17 | 18 | import java.time.ZoneOffset; |
18 | 19 | import java.util.Optional; |
19 | 20 | import java.util.UUID; |
... | ... | @@ -64,7 +65,7 @@ public class DeviceProfileDTO extends TenantDTO { |
64 | 65 | |
65 | 66 | public DeviceProfileDTO(UUID id, String name, Long time, String description, DeviceTransportType transportType, UUID defaultRuleChainId,boolean isDefault,String image,DeviceProfileType type,Object profileData) { |
66 | 67 | setId(id.toString()); |
67 | - setCreateTime(LocalDateTime.ofInstant(Instant.ofEpochMilli(time), ZoneOffset.UTC)); | |
68 | + setCreateTime(LocalDateTime.ofInstant(Instant.ofEpochMilli(time), ZoneOffset.of("+8"))); | |
68 | 69 | this.name = name; |
69 | 70 | this.isDefault = isDefault; |
70 | 71 | this.image = image; |
... | ... | @@ -78,7 +79,7 @@ public class DeviceProfileDTO extends TenantDTO { |
78 | 79 | |
79 | 80 | public DeviceProfileDTO(UUID id, String name, Long time, String description, DeviceTransportType transportType, String defaultRuleChainId,boolean isDefault,String image,DeviceProfileType type, String convertJs) { |
80 | 81 | setId(id.toString()); |
81 | - setCreateTime(LocalDateTime.ofInstant(Instant.ofEpochMilli(time), ZoneOffset.UTC)); | |
82 | + setCreateTime(LocalDateTime.ofInstant(Instant.ofEpochMilli(time), ZoneOffset.of("+8"))); | |
82 | 83 | this.name = name; |
83 | 84 | this.isDefault = isDefault; |
84 | 85 | this.image = image; | ... | ... |