数据库查询统一使用东八区时区显示

This commit is contained in:
fish
2026-04-13 21:45:30 +08:00
parent 0187160401
commit e359a32bed
5 changed files with 27 additions and 0 deletions

View File

@@ -63,6 +63,11 @@ async fn main() {
.await
.expect("Failed to connect to database");
sqlx::query("SET TIME ZONE 'Asia/Shanghai'")
.execute(&pool)
.await
.expect("Failed to set timezone");
info!("Database connected");
// JWT 密钥