pstuifzand / ekster

microsub server
GNU General Public License v3.0
27 stars 4 forks source link

Can't parse time #40

Closed lumenpink closed 3 years ago

lumenpink commented 3 years ago

I installed ekster today and got a lot of this messages on log

ERROR: can't parse 2021-07-04T17:40:00+0100 as time

The origin feed is the main feed of https://jvt.me

pstuifzand commented 3 years ago

Thank you for the report.

The time format that Ekster parses follows RFC3339, which expects the timezone offset +0100 to use the format +01:00. The microformats page seems to use optional :. So perhaps this should be tried both ways.

pstuifzand commented 3 years ago

I pushed a fix for this: https://github.com/pstuifzand/ekster/commit/2f0758748dc2a9d9f2cf7a763810507a672fe04e