1
2
3
4
5
6
7
8
9
10
11
use tendermint_light_client::{components, types::Time};

use crate::common::time;

pub struct InsecureClock;

impl components::clock::Clock for InsecureClock {
    fn now(&self) -> Time {
        Time::from_unix_timestamp(time::insecure_posix_time(), 0).unwrap()
    }
}