Quote:
Originally Posted by Ophelia
Very small bug.. I almost am embarrassed to post it.
Using the most current version: links-2.2.7-post2.zip
Add Entry (it was 5:22 my time)
Set time for 5:25
Submit the entry and it shows "Not yet visible"
Refresh the screen... at 5:24, instead of 5:25, it makes the file visible.
|
It's not a bug, it was deliberate.
The timestamp that's provided to a vb script records when the script starts running rather than when a particular piece of code is executed. So one has to build in a margin of error into time calculations so that when the user actually gets to see the page. In the case of pre-dated entries, I gave a 60 second margin, to avoid the situation where the page is presented at (5.25) but was requested at (5.24).
If this is serious for you, it's a very trivial change to the code of local_links_include.php, about line 2861, depending on version
Code:
$linkexpired = 0;
if ($expire) {
if ($linkdatebin>TIMENOW+60) {
$linkexpired = -1; // post-dated, so just invisible
}
Just change the 60 to something smaller.