diff --git a/apps/files/lib/Command/Scan.php b/apps/files/lib/Command/Scan.php
index 4d83d764928cc8fceeb2cabc69ebf24498038172..3c2ab716cec41a745ba477a3736bb22f6c0c4514 100644
--- a/apps/files/lib/Command/Scan.php
+++ b/apps/files/lib/Command/Scan.php
@@ -289,10 +289,9 @@ class Scan extends Base {
 	 * @return string
 	 */
 	protected function formatExecTime() {
-		list($secs, ) = explode('.', sprintf("%.1f", $this->execTime));
-
-		# if you want to have microseconds add this:   . '.' . $tens;
-		return date('H:i:s', $secs);
+		$secs = round($this->execTime);
+		# convert seconds into HH:MM:SS form
+		return sprintf('%02d:%02d:%02d', ($secs/3600),($secs/60%60), $secs%60);
 	}
 
 	/**