瀏覽代碼

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());