diff --git a/SourceGithub/SourceGithub.php b/SourceGithub/SourceGithub.php index 9426e94..8215564 100755 --- a/SourceGithub/SourceGithub.php +++ b/SourceGithub/SourceGithub.php @@ -356,8 +356,14 @@ $t_parents[] = $t_parent->sha; } - $t_changeset = new SourceChangeset( $p_repo->id, $p_json->sha, $p_branch, - $p_json->commit->author->date, $p_json->commit->author->name, $p_json->commit->message ); + $t_changeset = new SourceChangeset( + $p_repo->id, + $p_json->sha, + $p_branch, + date( 'Y-m-d H:i:s', strtotime( $p_json->commit->author->date ) ), + $p_json->commit->author->name, + $p_json->commit->message + ); if ( count( $p_json->parents ) > 0 ) { $t_parent = $p_json->parents[0]; @@ -464,4 +470,4 @@ } } -} \ No newline at end of file +}