Skip to content

Commit

Permalink
修复 "<duration> before/after <time>" 粒度适用错误
Browse files Browse the repository at this point in the history
  • Loading branch information
du00cs committed Aug 2, 2024
1 parent af40f2e commit 8f985cd
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8f985cd

Please sign in to comment.