We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c98c8b commit 4feccbeCopy full SHA for 4feccbe
src/domain.rs
@@ -10,7 +10,7 @@ pub struct Interval {
10
11
impl Interval {
12
pub fn end_iteration(&self) -> Result<Interval, String> {
13
- if self.start.date() != Local::today().naive_local() {
+ if self.start.date() != Local::now().naive_local().date() {
14
return Err("interval_not_from_today".to_string());
15
}
16
return Ok(Interval {
0 commit comments