Skip to content

Commit c175d34

Browse files
committed
fix: ensure timestamp precision to seconds for achievements
1 parent 92e4532 commit c175d34

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/api/handlers/communication_service.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ async fn update_user_stat(
427427
&& achievement.date_unlocked().is_none()
428428
{
429429
let dt = Utc::now();
430-
let timestamp_string = Some(dt.to_rfc3339().to_string());
430+
let timestamp_string = Some(dt.to_rfc3339_opts(chrono::SecondsFormat::Secs, false));
431431
super::utils::unlock_achievement(context, achievement, timestamp_string).await;
432432
}
433433
}

0 commit comments

Comments
 (0)