Page 1 of 1

Checking if the number the api gave me was right

PostPosted: Mon Apr 26, 2021 12:17 pm
by Walksanator
i got the time till next issue and it returned 1619480440
i tried putting it in as ms and got 5206.4539 h which doesent seem right as to not get a new issue in over a week
is my math wrong or is this the wrong unit of time

this is also confusing me as the time till next issue states that it is 00:00:00 till my next issue but no issue has appeared

PostPosted: Mon Apr 26, 2021 12:44 pm
by Frisbeeteria
Sounds like you've got something corrupted in your browser cache. Try Clearing your browser cache and/or a hard refresh (<ctrl-F5> on Windows) and see if that resolves the timer issue.

how to reset browser cache from curl

PostPosted: Mon Apr 26, 2021 12:53 pm
by Walksanator
i cant figure out how to reset the browser cache from curl, also the number is still really big. here is the command i used incase that helps
Code: Select all
curl -H "X-Password: (my password)" -A "(my email)" "https://www.nationstates.net/cgi-bin/api.cgi?nation=walksanator&q=nextissuetime

the output was
Code: Select all
<NATION id="walksanator">
<NEXTISSUETIME>1619480440</NEXTISSUETIME>
</NATION>

PostPosted: Mon Apr 26, 2021 12:59 pm
by Giovanniland
That is likely the Unix time of when the next issue will appear. According to Wikipedia, the Unix time represents how many seconds have passed since the Unix epoch (i.e. 00:00:00 UTC on 1 January 1970)

The article says that as I post it's 1619466198 on Unix time, so the number you see for the next issue isn't that far off.

thanks

PostPosted: Mon Apr 26, 2021 1:03 pm
by Walksanator
after putting it into a unix epoch time converter it says that the time passed 3 hours ago
which would explain why my issue timer is at 00:00:00
now to just wonder how to fix it