Skip to content

Update blog card date formatting - #1045

Merged
potiuk merged 1 commit into
apache:mainfrom
Paul-TT:main
Jul 19, 2026
Merged

Update blog card date formatting#1045
potiuk merged 1 commit into
apache:mainfrom
Paul-TT:main

Conversation

@Paul-TT

@Paul-TT Paul-TT commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Adding helper method to format blog rss feed date to be more human friendly.

@Paul-TT
Paul-TT requested a review from dave2wave as a code owner July 14, 2026 23:18
@raboof raboof added the pelican the pelican action label Jul 16, 2026

@potiuk potiuk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving. Verified import datetime is present so datetime.datetime.* resolves correctly and matches existing usage in this module; the helper degrades gracefully (empty string on empty input, original text when unparseable) and uses .day to avoid zero-padding.

Two minor non-blocking notes: strftime("%B") is locale-dependent, and replace('Z', '+00:00') replaces all occurrences rather than just a trailing Z - neither matters for the ISO-8601 timestamps this feed produces.

Thanks for the contribution!

@potiuk
potiuk merged commit 63537f8 into apache:main Jul 19, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pelican the pelican action

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants