NATION

PASSWORD

Checking if the number the api gave me was right

Bug reports, general help, ideas for improvements, and questions about how things are meant to work.
User avatar
Walksanator
Political Columnist
 
Posts: 5
Founded: Apr 28, 2020
Ex-Nation

Checking if the number the api gave me was right

Postby Walksanator » Mon Apr 26, 2021 12:17 pm

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
Last edited by Walksanator on Mon Apr 26, 2021 12:18 pm, edited 1 time in total.

User avatar
Frisbeeteria
Senior Game Moderator
 
Posts: 27796
Founded: Dec 16, 2003
Capitalizt

Postby Frisbeeteria » Mon Apr 26, 2021 12:44 pm

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.

User avatar
Walksanator
Political Columnist
 
Posts: 5
Founded: Apr 28, 2020
Ex-Nation

how to reset browser cache from curl

Postby Walksanator » Mon Apr 26, 2021 12:53 pm

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>
Last edited by Walksanator on Mon Apr 26, 2021 12:53 pm, edited 1 time in total.

User avatar
Giovanniland
Diplomat
 
Posts: 924
Founded: Aug 10, 2019
Corporate Bordello

Postby Giovanniland » Mon Apr 26, 2021 12:59 pm

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.
The Kingdom of Giovanniland

51st Delegate of the West Pacific
Former TWP Speaker of the Hall (x3), Guardian and Minister of Foreign Affairs


WA Author (SC#364, SC#372, SC#373, SC#377)
Card Collector (once the highest deck value ever at 26 million, maintains the Collection Collection Thread)

User avatar
Walksanator
Political Columnist
 
Posts: 5
Founded: Apr 28, 2020
Ex-Nation

thanks

Postby Walksanator » Mon Apr 26, 2021 1:03 pm

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


Return to Technical

Who is online

Users browsing this forum: West Capstone

Advertisement

Remove ads