From c81cc4313a62522c3822a2d88af67a6b2e151cd9 Mon Sep 17 00:00:00 2001
From: 648540858 <648540858@qq.com>
Date: 星期日, 26 九月 2021 15:33:00 +0800
Subject: [PATCH] Merge pull request #174 from chenparty/wvp-28181-2.0

---
 src/main/java/com/genersoft/iot/vmp/gb28181/event/online/OnlineEventListener.java |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/event/online/OnlineEventListener.java b/src/main/java/com/genersoft/iot/vmp/gb28181/event/online/OnlineEventListener.java
index acdf272..270fb36 100644
--- a/src/main/java/com/genersoft/iot/vmp/gb28181/event/online/OnlineEventListener.java
+++ b/src/main/java/com/genersoft/iot/vmp/gb28181/event/online/OnlineEventListener.java
@@ -52,7 +52,7 @@
 		case VideoManagerConstants.EVENT_ONLINE_REGISTER:
 			// 瓒呮椂鏃堕棿
 			redis.set(key, event.getDevice().getDeviceId(), sipConfig.getKeepaliveTimeOut());
-			device.setRegisterTime(format.format(new Date(System.currentTimeMillis())));
+			device.setRegisterTime(format.format(System.currentTimeMillis()));
 			break;
 		// 璁惧涓诲姩鍙戦�佸績璺宠Е鍙戠殑鍦ㄧ嚎浜嬩欢
 		case VideoManagerConstants.EVENT_ONLINE_KEEPLIVE:
@@ -63,7 +63,7 @@
 			} else {
 				redis.expire(key, sipConfig.getKeepaliveTimeOut());
 			}
-			device.setKeepaliveTime(format.format(new Date(System.currentTimeMillis())));
+			device.setKeepaliveTime(format.format(System.currentTimeMillis()));
 			break;
 		// 璁惧涓诲姩鍙戦�佹秷鎭Е鍙戠殑鍦ㄧ嚎浜嬩欢
 		case VideoManagerConstants.EVENT_ONLINE_MESSAGE:

--
Gitblit v1.8.0