diff --git a/src/main.rs b/src/main.rs index 09486b2..cee9fba 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,6 +1,6 @@ -use chrono::{Duration, Local, Utc}; +use chrono::{Duration, Local}; use discord_rich_presence::{ - activity::{Activity, Assets, Button, Timestamps}, + activity::{Activity, Assets, Button}, DiscordIpc, DiscordIpcClient, }; use std::{ @@ -35,7 +35,6 @@ async fn main() -> Result<(), Box> { tokio::spawn(async move { let user_url = format!("https://www.last.fm/user/{}", lfm_username); - let started_at = Utc::now(); loop { match recv_stop.try_recv() { Err(oneshot::error::TryRecvError::Empty) => { @@ -66,7 +65,6 @@ async fn main() -> Result<(), Box> { ) .details(details.as_str()) .state(state.as_str()) - .timestamps(Timestamps::new().start(started_at.timestamp())) .buttons(vec![Button::new("Profile", &user_url)]); let mut ipc_client = _ipc_client2.lock().unwrap();