@@ -475,12 +475,12 @@ public void CanReadCommitData()
475475 Assert . NotNull ( commit . Author ) ;
476476 Assert . Equal ( "Scott Chacon" , commit . Author . Name ) ;
477477 Assert . Equal ( "schacon@gmail.com" , commit . Author . Email ) ;
478- Assert . Equal ( 1273360386 , commit . Author . When . ToSecondsSinceEpoch ( ) ) ;
478+ Assert . Equal ( 1273360386 , commit . Author . When . ToUnixTimeSeconds ( ) ) ;
479479
480480 Assert . NotNull ( commit . Committer ) ;
481481 Assert . Equal ( "Scott Chacon" , commit . Committer . Name ) ;
482482 Assert . Equal ( "schacon@gmail.com" , commit . Committer . Email ) ;
483- Assert . Equal ( 1273360386 , commit . Committer . When . ToSecondsSinceEpoch ( ) ) ;
483+ Assert . Equal ( 1273360386 , commit . Committer . When . ToUnixTimeSeconds ( ) ) ;
484484
485485 Assert . Equal ( "181037049a54a1eb5fab404658a3a250b44335d7" , commit . Tree . Sha ) ;
486486
@@ -889,9 +889,9 @@ public void CanCorrectlyDistinguishAuthorFromCommitter()
889889 using ( var repo = new Repository ( path ) )
890890 {
891891 var author = new Signature ( "Wilbert van Dolleweerd" , "getit@xs4all.nl" ,
892- Epoch . ToDateTimeOffset ( 1244187936 , 120 ) ) ;
892+ DateTimeOffset . FromUnixTimeSeconds ( 1244187936 ) . ToOffset ( TimeSpan . FromMinutes ( 120 ) ) ) ;
893893 var committer = new Signature ( "Henk Westhuis" , "Henk_Westhuis@hotmail.com" ,
894- Epoch . ToDateTimeOffset ( 1244286496 , 120 ) ) ;
894+ DateTimeOffset . FromUnixTimeSeconds ( 1244286496 ) . ToOffset ( TimeSpan . FromMinutes ( 120 ) ) ) ;
895895
896896 Commit c = repo . Commit ( "I can haz an author and a committer!" , author , committer ) ;
897897
0 commit comments