forked from qt-creator/qt-creator
		
	Git: Avoid usage of deprecated QDateTime::fromTime_t
Change-Id: I37ce617990ee385e37261624d847a0aef757d283 Reviewed-by: André Hartmann <aha_1980@gmx.de>
This commit is contained in:
		
				
					committed by
					
						
						Orgad Shaneh
					
				
			
			
				
	
			
			
			
						parent
						
							f350c4d1d4
						
					
				
				
					commit
					6296e7bb38
				
			@@ -598,7 +598,7 @@ static GerritChangePtr parseSshOutput(const QJsonObject &object)
 | 
			
		||||
    change->branch = object.value("branch").toString();
 | 
			
		||||
    change->status =  object.value("status").toString();
 | 
			
		||||
    if (const int timeT = object.value("lastUpdated").toInt())
 | 
			
		||||
        change->lastUpdated = QDateTime::fromTime_t(uint(timeT));
 | 
			
		||||
        change->lastUpdated = QDateTime::fromSecsSinceEpoch(timeT);
 | 
			
		||||
    // Read out dependencies
 | 
			
		||||
    const QJsonValue dependsOnValue = object.value("dependsOn");
 | 
			
		||||
    if (dependsOnValue.isArray()) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user