Skip to content

Commit

Permalink
Update tendermint/src/time.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Thane Thomson <thane@informal.systems>
  • Loading branch information
mzabaluev and thanethomson committed Dec 7, 2021
1 parent ac8a56c commit 9958a0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tendermint/src/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ impl Time {
fn from_utc(t: OffsetDateTime) -> Result<Self, Error> {
debug_assert_eq!(t.offset(), offset!(UTC));
match t.year() {
1..=9999 => Ok(Time(PrimitiveDateTime::new(t.date(), t.time()))),
1..=9999 => Ok(Self(PrimitiveDateTime::new(t.date(), t.time()))),
_ => Err(Error::date_out_of_range()),
}
}
Expand Down

0 comments on commit 9958a0c

Please sign in to comment.