athul / waka-readme

Wakatime Weekly Metrics on your Profile Readme.
https://github.com/athul
MIT License
1.56k stars 301 forks source link

Got an error with self-hosted wakapi instance #112

Closed njts closed 1 year ago

njts commented 1 year ago

2022-12-05 02:44:26] ln. 418 DEBUG Initialize WakaReadme [2022-12-05 02:44:26] ln. 424 DEBUG Input validation complete [2022-12-05 02:44:26] ln. 365 DEBUG Connecting to GitHub [2022-12-05 02:44:26] ln. 369 DEBUG Decoding readme contents

[2022-12-05 02:44:26] ln. 299 DEBUG Pulling WakaTime stats from all time [2022-12-05 02:44:27] ln. 316 DEBUG API response #1: 200 • OK [2022-12-05 02:44:27] ln. 320 DEBUG Fetched WakaTime statistics [2022-12-05 02:44:27] ln. 192 DEBUG Making title [2022-12-05 02:44:27] ln. 201 ERROR time data '2022-11-27T01:50:21.284Z' does not match format '%Y-%m-%dT%H:%M:%SZ'

yozachar commented 1 year ago

From the official WakaTime API we're expecting date-time in '%Y-%m-%dT%H:%M:%SZ' format. eg. '2022-02-20T18:29:59Z'.

Your instance of WakaAPI provides 2022-11-27T01:50:21.284Z, which has millisecond resolution. Please adjust the settings of your self-hosted instance to match '%Y-%m-%dT%H:%M:%SZ' format. Ref: https://strftime.org/