junhoyeo / threads-api

Unofficial, Reverse-Engineered Node.js/TypeScript client for Meta's Threads. Web UI Included.
https://threads.junho.io
MIT License
1.58k stars 135 forks source link

Dynamically calculate timezone offset based on user's timezone #50

Closed SethuSenthil closed 1 year ago

SethuSenthil commented 1 year ago

The current implementation hard-codes the timezone offset for the PST timezone. This commit introduces changes to dynamically calculate the timezone offset based on the user's timezone. By doing so, we reduce the risk of account bans and detection by adapting to the user's specific time zone. This improves the overall reliability and robustness of the system.

Currently, this mainly affects the ".publish" method to create new threads