Skip to content

Commit c7be5c4

Browse files
authored
Merge pull request #8 from jtgeibel/fix-deprecation
Fix deprecation in time crate
2 parents 31f9888 + 4f69cf3 commit c7be5c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ fn is_modified_since(modified_since: OffsetDateTime, res: &Response<Body>) -> bo
7373
Err(_) => false,
7474
Ok(last_modified) => match parse_http_date(last_modified) {
7575
Err(_) => false,
76-
Ok(last_modified) => modified_since.timestamp() >= last_modified.timestamp(),
76+
Ok(last_modified) => modified_since.unix_timestamp() >= last_modified.unix_timestamp(),
7777
},
7878
}
7979
}

0 commit comments

Comments
 (0)