pub fn block_date_from_system_time(
    settings: &Settings,
    date: SystemTime
) -> Result<BlockDate, Error>