feat: add formatted date to RSS feed response
- Include formattedDate in the RSS feed response - Utilize art.formatted_time method for better date formatting This change enhances the RSS feed by providing a more user-friendly formatted date alongside the existing weather date. This allows clients consuming the RSS feed to display dates in a more readable format, improving overall usability.
This commit is contained in:
parent
d39a7deea2
commit
9dd6fc26f8
@ -33,7 +33,8 @@ class RssController < ApplicationController
|
||||
state: art.city&.state&.name,
|
||||
description: art.description,
|
||||
prompt: art.prompt,
|
||||
date: art.weather_date&.strftime("%Y-%m-%d")
|
||||
date: art.weather_date&.strftime("%Y-%m-%d"),
|
||||
formattedDate: art.formatted_time(:all, true)
|
||||
}
|
||||
}
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user