From 17457ca407043508d52cd8f31fc96f39aa4b06c2 Mon Sep 17 00:00:00 2001 From: takurinton Date: Tue, 21 May 2024 09:01:04 +0900 Subject: [PATCH] add 9 hours --- src/scheduler/atproto.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/scheduler/atproto.rs b/src/scheduler/atproto.rs index 3f44042..707ebe6 100644 --- a/src/scheduler/atproto.rs +++ b/src/scheduler/atproto.rs @@ -38,7 +38,10 @@ impl Processer for ProcesserStruct { &item.post.record.createdAt, "%Y-%m-%dT%H:%M:%S%.3fZ", ) { - Ok(created_at) => created_at.format("%Y-%m-%d %H:%M:%S").to_string(), + Ok(created_at) => { + let created_at = created_at + chrono::Duration::hours(9); + created_at.format("%Y-%m-%d %H:%M:%S").to_string() + } Err(why) => { error!("Error parsing created_at: {:?}", why); return Err(Box::new(std::io::Error::new(