KevinNovak / Friend-Time

Discord bot - Friend Time helps your server coordinate times and events by converting times mentioned in chat between time zones!

Home Page:https://novakevin.gitbook.io/friend-time

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect time returned from using "ago"

rosareven opened this issue · comments

The use of "ago" (for example 1 hour ago) returns incorrect time.

Have checked that -ft time returns the correct time, so there's no telling where the bot got the time from for "ago".

Please see screenshot for the problem in action.

Discord_EZYDZG6U8E

Hi @rosareven, I see the problem. This bug is caused by the fact that Friend Time is using it's local time a reference point when doing the conversion. There should be a fix coming. Thanks for making me aware of this.

After looking into this, I decided to remove the ability for Friend Time to convert time formats like "1 hour ago" or "45 minutes later". There were other issues around this type of format that would require significant rework. I'd like to get this working in the future but for now Friend Time won't attempt to try to convert these formats.

It's for the best. It does get unintentionally triggered too often in ordinary chit chat. Thanks for your update.