Ver código fonte

时间如果是空,则默认当空处理

finlay 1 ano atrás
pai
commit
ac681f177d

+ 2 - 1
lib/pages/check/follow_up/widgets/follow_up_from.dart

@@ -102,7 +102,8 @@ class FollowUpFrom extends GetView<FollowUpController> {
   }
 
   String getFollowUpTime(DateTime? time) {
-    if (time != null) {
+    // print(time);
+    if (time != null && time.toString() != "0001-01-01 00:00:00.000Z") {
       return DateFormat('yyyy-MM-dd').format(time);
     }
     return '';