remove deprecated function
This commit is contained in:
parent
bebe89d21b
commit
709411ce5c
@ -1,4 +1,4 @@
|
||||
use chrono::{DateTime, Local, NaiveDateTime, Utc};
|
||||
use chrono::{DateTime, Local, NaiveDateTime, TimeZone, Utc};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use sqlx::{FromRow, SqlitePool};
|
||||
|
||||
@ -41,7 +41,7 @@ LIMIT 1000
|
||||
<description>An RSS feed with activities from app.rudernlinz.at</description>"#,
|
||||
);
|
||||
for log in Self::last(db).await {
|
||||
let utc_time: DateTime<Utc> = DateTime::from_utc(log.created_at, Utc);
|
||||
let utc_time: DateTime<Utc> = Utc::from_utc_datetime(&Utc, &log.created_at);
|
||||
let local_time = utc_time.with_timezone(&Local);
|
||||
ret.push_str("<item><title>");
|
||||
ret.push_str(&format!("({}) {}", local_time, log.msg));
|
||||
|
Loading…
Reference in New Issue
Block a user