Open trollhe opened 2 years ago
You can't insert integer timestampts into a column of type DateTime. Convert timestamps into chrono::DateTime objects first, like this:
use chrono_tz::Tz::UTC;
let block = Block::new().column(
"p_time",
vec![
UTC.timestamp_opt(1667210027_i64, 0).unwrap(),
UTC.timestamp_opt(1667210027_i64, 0).unwrap(),
],
);
table :
codes:
error logs: