Skip to content

Commit efc5e65

Browse files
Fix epoch in Chrono conversion.
1 parent 446c3c9 commit efc5e65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ impl From<&Time> for chrono::DateTime<chrono::Utc> {
408408
fn from(time: &Time) -> Self {
409409
use chrono::prelude::*;
410410
let our_epoch = Utc
411-
.with_ymd_and_hms(2001, 1, 1, 0, 0, 0)
411+
.with_ymd_and_hms(2000, 1, 1, 0, 0, 0)
412412
.unwrap()
413413
.timestamp();
414414
chrono::Utc

0 commit comments

Comments
 (0)