diff --git a/Library/Homebrew/cask/cask.rb b/Library/Homebrew/cask/cask.rb index 6d71d30ddffcb..fadce179e3861 100644 --- a/Library/Homebrew/cask/cask.rb +++ b/Library/Homebrew/cask/cask.rb @@ -321,6 +321,7 @@ def to_h "appcast" => appcast, "version" => version, "installed" => installed_version, + "installed_time" => install_time&.to_i, "outdated" => outdated?, "sha256" => sha256, "artifacts" => artifacts_list, diff --git a/Library/Homebrew/test/support/fixtures/cask/everything.json b/Library/Homebrew/test/support/fixtures/cask/everything.json index 32eae9e9bd051..b720fd44e756e 100644 --- a/Library/Homebrew/test/support/fixtures/cask/everything.json +++ b/Library/Homebrew/test/support/fixtures/cask/everything.json @@ -20,6 +20,7 @@ "appcast": null, "version": "1.2.3", "installed": null, + "installed_time": null, "outdated": false, "sha256": "c64c05bdc0be845505d6e55e69e696a7f50d40846e76155f0c85d5ff5e7bbb84", "artifacts": [