zhaohaipeng 1 год назад
Родитель
Сommit
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());
         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());
         featureMap.put("day_of_week", now.getDayOfWeek());
 
 
         long createTs = Long.parseLong(videoFeature.getOrDefault("gmt_create_timestamp", "0").toString());
         long createTs = Long.parseLong(videoFeature.getOrDefault("gmt_create_timestamp", "0").toString());