2020-12-18 16:17:21 +00:00
|
|
|
#[macro_use]
|
|
|
|
extern crate diesel;
|
|
|
|
|
2020-12-18 17:27:25 +00:00
|
|
|
use chrono::NaiveDateTime;
|
|
|
|
|
2020-12-18 16:17:21 +00:00
|
|
|
pub mod schema;
|
2020-12-18 17:27:25 +00:00
|
|
|
pub mod source;
|
|
|
|
|
2020-12-18 18:38:32 +00:00
|
|
|
// TODO: can probably move this back to lemmy_db
|
2020-12-18 17:27:25 +00:00
|
|
|
pub fn naive_now() -> NaiveDateTime {
|
|
|
|
chrono::prelude::Utc::now().naive_utc()
|
|
|
|
}
|