mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-11 10:05:41 +00:00
feat: migrate fetching stats to use db_*
This commit is contained in:
@@ -65,6 +65,12 @@ impl Date {
|
||||
pub fn date(&self) -> String {
|
||||
self.time.format("%F %r %z")
|
||||
}
|
||||
|
||||
pub fn new(unix: i64) -> Self {
|
||||
Self {
|
||||
time: OffsetDateTime::from_unix_timestamp(unix),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
||||
Reference in New Issue
Block a user