Skip to content

Commit 4feccbe

Browse files
committed
remove depricated function
1 parent 1c98c8b commit 4feccbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/domain.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pub struct Interval {
1010

1111
impl Interval {
1212
pub fn end_iteration(&self) -> Result<Interval, String> {
13-
if self.start.date() != Local::today().naive_local() {
13+
if self.start.date() != Local::now().naive_local().date() {
1414
return Err("interval_not_from_today".to_string());
1515
}
1616
return Ok(Interval {

0 commit comments

Comments
 (0)