diff --git a/common/git/git_pull_handler.cpp b/common/git/git_pull_handler.cpp index 6e534d3fc8..4709342d1a 100644 --- a/common/git/git_pull_handler.cpp +++ b/common/git/git_pull_handler.cpp @@ -159,7 +159,8 @@ std::string GIT_PULL_HANDLER::getFirstLineFromCommitMessage( const std::string& std::string GIT_PULL_HANDLER::getFormattedCommitDate( const git_time& aTime ) { char dateBuffer[64]; - strftime( dateBuffer, sizeof( dateBuffer ), "%Y-%b-%d %H:%M:%S", gmtime( &aTime.time ) ); + time_t time = static_cast( aTime.time ); + strftime( dateBuffer, sizeof( dateBuffer ), "%Y-%b-%d %H:%M:%S", gmtime( &time ) ); return dateBuffer; }