优化主界面显示

This commit is contained in:
DelLevin-Home
2026-05-25 18:29:17 +08:00
parent da952f3468
commit b36f50827f
3 changed files with 9 additions and 26 deletions

View File

@@ -58,7 +58,7 @@ class _ServerSyncPageState extends State<ServerSyncPage> {
final exp = _prefs.syncExpiresAt;
if (exp.isNotEmpty) {
try {
final dt = DateTime.parse(exp);
final dt = DateTime.parse(exp).add(const Duration(hours: 8));
_expiresText = '有效期至 ${dt.year}-${dt.month.toString().padLeft(2, '0')}-${dt.day.toString().padLeft(2, '0')} '
'${dt.hour.toString().padLeft(2, '0')}:${dt.minute.toString().padLeft(2, '0')}';
} catch (_) {