Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #26763 - Pass string representation of time in host info [3.12 Cherry Pick] #8197

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/models/katello/host/info_provider.rb
Expand Up @@ -28,7 +28,7 @@ def content_view_info
'label' => host.content_view.try(:label),
'latest-version' => host.content_view.try(:latest_version),
'version' => content_version.try(:version),
'published' => content_version.try(:created_at).try(:time),
'published' => content_version.try(:created_at).try(:time).to_s,
'components' => content_view_components
}

Expand All @@ -43,7 +43,7 @@ def content_view_components
cv_label = cv.component_version.content_view.label
components[cv_label] = {}
components[cv_label]['version'] = cv.component_version.try(:version)
components[cv_label]['published'] = cv.component_version.try(:created_at).try(:time)
components[cv_label]['published'] = cv.component_version.try(:created_at).try(:time).to_s
end
components
end
Expand Down