Browse Source

打卡时间显示BUG修复

anderx 1 month ago
parent
commit
f15c7e88d1
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/main/java/com/goafanti/common/model/PublicReleaseClock.java

+ 4 - 0
src/main/java/com/goafanti/common/model/PublicReleaseClock.java

@@ -1,5 +1,7 @@
 package com.goafanti.common.model;
 
+import com.fasterxml.jackson.annotation.JsonFormat;
+
 import java.io.Serializable;
 import java.util.Date;
 
@@ -80,6 +82,8 @@ public class PublicReleaseClock implements Serializable {
         this.photoUrl = photoUrl;
     }
 
+
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
     public Date getClockInTime() {
         return clockInTime;
     }