sravan1946 / sravan-cogs

Some random cogs made by me for my bot made using Red-DiscordBot
MIT License
5 stars 10 forks source link

[Timeout] Chat timestamp incorrect #2

Closed DoctorDinosaur closed 2 years ago

DoctorDinosaur commented 2 years ago

Upon timing out someone, the chat response's timestamp is wrong by 1 hour (3600), i.e. the raw timestamp is 3600 lower than it should be.

I.e. I find the current UTC timestamp, then mute someone for 1 minute and check the timestamp in chat. It's in the lower than the current timestamp, i.e. in the past.

I've honestly no idea why. UTC is 1 hour out from my timezone, but the code specifies UTC time.

sravan1946 commented 2 years ago

Have pushed a push which might fix it. Try updating and check

DoctorDinosaur commented 2 years ago

Yep, that fixed it!