diff --git a/duckling-fork-chinese/core/src/main/scala/com/xiaomi/duckling/dimension/time/Rules.scala b/duckling-fork-chinese/core/src/main/scala/com/xiaomi/duckling/dimension/time/Rules.scala index a1b62ed..16d3768 100644 --- a/duckling-fork-chinese/core/src/main/scala/com/xiaomi/duckling/dimension/time/Rules.scala +++ b/duckling-fork-chinese/core/src/main/scala/com/xiaomi/duckling/dimension/time/Rules.scala @@ -373,8 +373,7 @@ trait Rules extends DimRules { case TimeOfDay(_, _) => Day case _ => NoGrain } - } else if (g == Year && td.timeGrain == Month) Year - else NoGrain + } else g val coarseDate = cycleNth(g, sign * v, roundGrain) tt(intersect(coarseDate, td)) } else None