TibiaData / tibiadata-api-go

TibiaData API written in Golang and deployed in container (version v3 and above).
https://api.tibiadata.com
MIT License
81 stars 27 forks source link

[bug] character deathlist timestamp parsing issue #262

Closed tobiasehlert closed 11 months ago

tobiasehlert commented 11 months ago

There seems to be an issue with the parsing of the timestamps in deaths on character endpoint.

...
    "deaths": [
        {
            "time": "0001-01-01T00:00:00Z",
            "level": 10,
            "killers": [
                {
                    "name": "fire",
                    "player": false,
                    "traded": false,
                    "summon": ""
                }
            ],
            "assists": [],
            "reason": "t 08 2023, 18:19:35 CESTDied at Level 10 by fire."
        },
        ...
    ]
...

URL:

Error from log:

2023/10/08 19:47:08 parsing time "Oc" as "Jan 02 2006, 15:04:05 MST": cannot parse "Oc" as "Jan"
2023/10/08 19:47:08 parsing time "Oc" as "Jan 02 2006, 15:04:05 MST": cannot parse "Oc" as "Jan"
[GIN] 2023/10/08 - 19:47:08 | 200 |  108.456648ms |  XXX.XXX.XXX.XXX | GET      "/v4/character/Orca Kaoksh"