Skip to content

Commit 6bac82b

Browse files
authored
Fix comment publish date (#245)
Changed to use correct variable. Tested to verify fix.
1 parent a1ceac4 commit 6bac82b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp2hugo/internal/wpparser/wp_parser_setup.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ func getCommonFields(item *rss.Item, taxonomies []TaxonomyInfo) (*CommonFields,
555555
Str("date", item.Extensions["wp"]["post_date"][0].Value).
556556
Msg("Error parsing date")
557557
} else {
558-
pubDate = &tmp
558+
commentPubDate = &tmp
559559
}
560560

561561
comments = append(comments, CommentInfo{

0 commit comments

Comments
 (0)