You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the implementation, we can’t just test if the string contains a T as the timezone GMT is commonly used. So I added the T test at the second place. I tested a string that might be of format 2822 if it contains at least 3 spaces. If you find a better implementation, I open to suggetions.
Motivation
In Zola, when using load_data(url="https://anchor.fm/s/41f4a6b4/podcast/rss"), the dates are formatted as RFC 2822, instead of a more common format. I wanted to format them the way I intended.
The text was updated successfully, but these errors were encountered:
Add capability of the Tera filter
{{ s | date }}
to parse strings formatted as RFC 2822.Example of RFC 2822 dates:
Implementation
Hopefuly
chrono
supports it out of the box.In the implementation, we can’t just test if the string contains a
T
as the timezoneGMT
is commonly used. So I added theT
test at the second place. I tested a string that might be of format 2822 if it contains at least 3 spaces. If you find a better implementation, I open to suggetions.Motivation
In Zola, when using
load_data(url="https://anchor.fm/s/41f4a6b4/podcast/rss")
, the dates are formatted as RFC 2822, instead of a more common format. I wanted to format them the way I intended.The text was updated successfully, but these errors were encountered: