|
@@ -98,7 +98,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() + 1);
|
|
featureMap.put("hour", now.getHour() + 1);
|
|
- featureMap.put("day_of_week", now.getDayOfWeek());
|
|
|
|
|
|
+ featureMap.put("day_of_week", now.getDayOfWeek().getValue());
|
|
|
|
|
|
long createTs = Long.parseLong(videoFeature.getOrDefault("gmt_create_timestamp", "0").toString());
|
|
long createTs = Long.parseLong(videoFeature.getOrDefault("gmt_create_timestamp", "0").toString());
|
|
featureMap.put("create_ts_diff", ExtractorUtils.getDaysBetween(createTs, ts));
|
|
featureMap.put("create_ts_diff", ExtractorUtils.getDaysBetween(createTs, ts));
|