Koucha/koucha/src/test_utils.rs

12 lines
154 B
Rust
Raw Normal View History

#![cfg(test)]
use chrono::{
Utc,
TimeZone,
DateTime
};
pub fn get_datetime() -> DateTime<Utc> {
Utc.with_ymd_and_hms(2020,1,1,0,0,0).unwrap()
}