ao-data / albiondata-client

Distributed client for the Albion Online Data project.
https://www.albion-online-data.com/
MIT License
105 stars 32 forks source link

Date/Time Data has a 'T' in It #57

Closed sadume closed 1 year ago

sadume commented 1 year ago

Date/Time Data has a 'T' in It

I'm not sure if this is something that can be fixed like if its from Albion end but it just makes the data annoying to work with in code.

ValueError: time data '2023-08-24T12:10:00' does not match format '%y/%m/%d %H:%M:%S'

phendryx commented 1 year ago

Any datetime parser will parse it just fine. https://en.wikipedia.org/wiki/ISO_8601

kochd commented 1 year ago

https://docs.python.org/3/library/datetime.html#datetime.datetime.fromisoformat