in buildSrc/src/main/groovy/org/grails/gradle/BlogTask.groovy [183:206]
static RssItem rssItemWithPage(String title,
Date pubDate,
String link,
String guid,
String html,
String author) {
String htmlWithoutTitleAndDate = html
if (htmlWithoutTitleAndDate.contains('<span class="date">')) {
htmlWithoutTitleAndDate = htmlWithoutTitleAndDate.substring(htmlWithoutTitleAndDate.indexOf('<span class="date">'))
htmlWithoutTitleAndDate = htmlWithoutTitleAndDate.substring(htmlWithoutTitleAndDate.indexOf('</span>') + '</span>'.length())
}
RssItem.Builder builder = RssItem.builder()
.title(title)
.pubDate(ZonedDateTime.of(Instant.ofEpochMilli(pubDate.time)
.atZone(ZoneId.systemDefault())
.toLocalDateTime(), ZoneId.of("GMT")))
.link(link)
.guid(guid)
.description(htmlWithoutTitleAndDate)
if (author) {
builder = builder.author(parseAuthorName(author))
}
builder.build()
}