feed icon indicating copy to clipboard operation
feed copied to clipboard

Date Format

Open shotap opened this issue 4 years ago • 3 comments

Hi, how can the pubDate can be in ISO-8601 format? when I try to addItem with string in the date field I get a typescript error.

shotap avatar Dec 06 '20 13:12 shotap

Same issue here. Need to change the format to "Month Day, Year". Is there a way of configuring the format that Date will be parsed to?

aninhalacerda avatar Jun 15 '21 21:06 aninhalacerda

Hi.

You probably don't want to do that. Date formats are defined per spec of each feed.

The fact that this package uses a single format for all is not correct, but there is no need to ever use ISO-8601.

pawelgrzybek avatar May 22 '23 10:05 pawelgrzybek

rss2() returns this format for me <pubDate>Tue, 25 Jul 2023 00:00:00 GMT</pubDate>

yaneq avatar Aug 14 '23 13:08 yaneq