You are viewing a single comment's thread from:

RE: LeoThread 2024-09-17 12:56

in LeoFinance3 months ago

I still don't know how to do that... Since it posts it on the blockchain, it'll have to post at the blockchain's time zone, which happens to be UTC.

One way to work around it, but I don't know if it's worth it, is to save the time zone of every user and use their time zones when replying to them, but the users have to register their time zone manually on the bot, and it'll require too much work for a free bot like this one.

What do you think?

Sort:  

Well if everything is in UTC and pulling from the chain, it would be a good ability.

But one thought, could you feed in the 20 or 30 different time zones into the code so that if it sees EST or GMT, it converts it to UTC.

@mightpossibly might have some ideas how to integrate a simple database like that into your code.

I can, but it'll take effort. I'll add it to my list of features to create in the future!

But one thought, could you feed in the 20 or 30 different time zones into the code so that if it sees EST or GMT, it converts it to UTC.

As I said @mightpossibly integrated a database into his coding prompts. I believe he used chatGPT also. He might have some ideas.

But either way, it is a great feature. I will set one up for the Lions Den and tell everyone to do the same.