@@ -4,7 +4,7 @@ use crate::{
4
4
CompileBenchmark , Date , Profile ,
5
5
} ;
6
6
use crate :: { ArtifactIdNumber , Index , QueuedCommit } ;
7
- use chrono:: { DateTime , NaiveDateTime , TimeZone , Utc } ;
7
+ use chrono:: { DateTime , TimeZone , Utc } ;
8
8
use hashbrown:: HashMap ;
9
9
use rusqlite:: params;
10
10
use rusqlite:: OptionalExtension ;
@@ -952,7 +952,7 @@ impl Connection for SqliteConnection {
952
952
include : row. get ( 3 ) . unwrap ( ) ,
953
953
exclude : row. get ( 4 ) . unwrap ( ) ,
954
954
runs : row. get ( 5 ) . unwrap ( ) ,
955
- commit_date : row. get :: < _ , Option < i64 > > ( 6 ) . unwrap ( ) . map ( |timestamp| Date ( NaiveDateTime :: from_timestamp_opt ( timestamp, 0 ) . unwrap ( ) . and_utc ( ) ) )
955
+ commit_date : row. get :: < _ , Option < i64 > > ( 6 ) . unwrap ( ) . map ( |timestamp| Date ( DateTime :: from_timestamp ( timestamp, 0 ) . unwrap ( ) ) )
956
956
} )
957
957
} )
958
958
. collect :: < Result < Vec < _ > , _ > > ( )
@@ -983,7 +983,7 @@ impl Connection for SqliteConnection {
983
983
include : row. get ( 3 ) . unwrap ( ) ,
984
984
exclude : row. get ( 4 ) . unwrap ( ) ,
985
985
runs : row. get ( 5 ) . unwrap ( ) ,
986
- commit_date : row. get :: < _ , Option < i64 > > ( 6 ) . unwrap ( ) . map ( |timestamp| Date ( NaiveDateTime :: from_timestamp_opt ( timestamp, 0 ) . unwrap ( ) . and_utc ( ) ) )
986
+ commit_date : row. get :: < _ , Option < i64 > > ( 6 ) . unwrap ( ) . map ( |timestamp| Date ( DateTime :: from_timestamp ( timestamp, 0 ) . unwrap ( ) ) )
987
987
} )
988
988
} ,
989
989
)
0 commit comments