kevinmarks / unmung

turn feeds into h-feeds
13 stars 1 forks source link

Incorrect datetime when converting h-feed to mf2 json #6

Open EdwardHinkle opened 5 years ago

EdwardHinkle commented 5 years ago

I have a podcast feed here: http://feeds.30andcounting.me/podcast

It has the published datetime as Jan 22, 9:20 PM -0500

When I put this into h-feed the h-feed page says “4 hours ago” which is correct. (http://www.unmung.com/feed?feed=https%3A%2F%2Ffeeds.30andcounting.me%2Fpodcast)

When I put that h-feed into the mf2 JSON parser (http://www.unmung.com/mf2?url=http%3A%2F%2Fwww.unmung.com%2Ffeed%3Ffeed%3Dhttp%253A%252F%252Ffeeds.30andcounting.me%252Fpodcast&html=), it provides me Jan 23, 2:20 AM (no time zone offset). Obviously that’s the same time, but my website doesn’t know what time zone I was in at the time to add it appropriately. I think the mf2 parser should be returning my original datetime with my original offset Jan 22, 9:20 PM -0500

EdwardHinkle commented 5 years ago

I ran the h-feed through pin13 and it returns the same weird datetime without offset, so the issue seems to be with the podcast to h-feed’s machine readable dt-published content