Skip to content

Commit

Permalink
add 9 hours
Browse files Browse the repository at this point in the history
  • Loading branch information
takurinton committed May 21, 2024
1 parent 3994845 commit 17457ca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/scheduler/atproto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ impl Processer<Feed> 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(
Expand Down

0 comments on commit 17457ca

Please sign in to comment.