Ran into a problem today that my lifetime-premium account of K2S was only recognized as
Free Account (expired premium) even though it's still valid till 2030.
After looking into the plugin, i saw that the
account_expires_timestamp from the K2S api was compared with the current time with milliseconds!
Code:
if (account_expires_timestamp < System.currentTimeMillis()) {
whereas the api reports my
account_expires_timestamp as
which is unix epoch of 2030
and the plugin compares it with
which is current time in milliseconds, which is ALWAYS bigger than the plain epoch in seconds, so my account gets always flagged as expired premium.
A quick debug run where i added the values to the Account status confirmed it:
https://snipboard.io/Gla31p.jpg
I implemented a quick fix on my end, it's a trivial fix so i don't think i need to post a patch.
Also you can see that the traffic is recognized as "18.11 GB of 18.11 GB left", not sure if the total is not reported correctly by the api anymore, not a big deal anyway.
Regards,
FBD