VTGare / boe-tea-go

Source image bot for Discord
MIT License
20 stars 7 forks source link

[Bug] Timestamps older than 1 day broken in crosspost footers #14

Closed Ghostdesu closed 2 years ago

Ghostdesu commented 2 years ago

Any footer timestamp that would include a date contains 01/01/1 instead of a correct date.

To Reproduce

  1. Set up a crosspost group between any 2 servers.
  2. Find an art link on a supported service that is at least 1 day old.
  3. Post it in the parent channel of the crosspost group.
  4. Observe the issue in a child channel of the group.

Expected Behavior The footer should contain the accurate date of the post. (e.g. 10/01/2022)

Screenshots image image

VTGare commented 2 years ago

Nitter changed timestamp format, so it's failing to parse. This will be fixed when I complete migration to arikawa.

VTGare commented 2 years ago

Fixed in https://github.com/VTGare/boe-tea-go/commit/2485753fe9658510fd1c5baede6ba3dc88e55950