소스 검색

feat:修改hour的处理

zhaohaipeng 2 달 전
부모
커밋
17b875278a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/main/java/examples/extractor/v20250218/ExtractFeature20250218.java

+ 1 - 1
src/main/java/examples/extractor/v20250218/ExtractFeature20250218.java

@@ -97,7 +97,7 @@ public class ExtractFeature20250218 {
         }
 
         LocalDateTime now = LocalDateTime.ofInstant(Instant.ofEpochSecond(ts), ZoneId.systemDefault());
-        featureMap.put("hour", now.getHour());
+        featureMap.put("hour", now.getHour() + 1);
         featureMap.put("day_of_week", now.getDayOfWeek());
 
         long createTs = Long.parseLong(videoFeature.getOrDefault("gmt_create_timestamp", "0").toString());