Rocksolid Light

Welcome to novaBBS

register   nodelist   faq  

Your account also provides newsreader access to all groups at port 119 or 563 (TLS)

rocksolid / Programming / date problems

o date problemsAnonymous

Subject: date problems
From: (Anonymous)
Newsgroups: rocksolid.programming
Organization: i2pn2 (
Date: Fri, 12 Jun 2020 15:01 UTC
From: Anonymous <>
Newsgroups: rocksolid.programming
Subject: date problems
Date: Fri, 12 Jun 2020 08:01:39 -0700
Organization: i2pn2 (
Message-ID: <>
References: <>
Content-Type: text/plain; charset=UTF-8
Injection-Info:; posting-account="def2";
logging-data="15740"; mail-complaints-to=""
Xref: rslight2 rocksolid.programming:79
Message-ID: <>
-fix date for message import

this one turns out to be really tough. i think it was not meant to work that way (so, to have the original posting time).

i have this line here in the function post (functions.php), which sets the time for the article to be inserted:

$query->bindValue(':time', isset($post['time']) ? $post['time'] : time(), PDO::PARAM_INT);

so, if we don't have a time, we take the current time. this is how i read this line.
but for some reason even if the variable is set to the original time of the article, the current time is taken instead.
maybe it has to do the complicated callback construct that they use (which i don't fully understand).



Posted on def2

rocksolid light 0.6.6
clearnet i2p tor