dashed-slug.net › Forums › TurtleCoin Adapter extension support › Invalid Created Times showing up in the transactions › Reply To: Invalid Created Times showing up in the transactions
Hello,
Thank you for starting a new thread for this.
I can see in your var_dump output in the other thread that your incoming deposit has a timestamp of 1596502204 which looks correct.
Since you’ve already started hacking the code, know that the timestamp is copied over in function create_deposit_rows()
as follows:
private function create_deposit_rows( &$tx ) {
…
$txrow->created_time = isset( $tx->timestamp ) && $tx->timestamp ? absint( $tx->timestamp ) : time();
…
}
First ensure that you have exactly the code as released, then check to see what’s going on in that function.
Just keep in mind that it’s best not to change anything in the code. If you spot a bug let me know and I’ll fix it. So please check the FAQ under “I want to do changes to the plugin’s code.”
with regards