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
August 7, 2020 at 8:42 pm
#9109
d3vnu77
Participant
I am not changing your code, just outputting variable into the error log so I can see what is going on…
in wallets/includes/transactions.PHP : action_wallets_transaction()
I see you run this code to get it to MYSQL format, where you convert it to a string here… as mentioned above…
if ( is_numeric( $tx->created_time ) ) {
$tx->created_time = date( DATE_ISO8601, $tx->created_time );
}
error_log(print_r( $tx, true ));
I echoed that to the debug.log and noticed that the string it is creating has an extra T & +0000… is that supposed to be there, see attached image.
When I try to insert that into the DO MYSQL I also get zero dates