mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-07-08 01:30:28 +08:00
fix: Convert timestamps to local time in date formatting across components
This commit is contained in:
@@ -58,11 +58,11 @@ class SessionCard extends StatelessWidget {
|
||||
final expiredTime =
|
||||
DateFormat.yMd(MainApp.of(context).lang.toLocale().toString())
|
||||
.add_jms()
|
||||
.format(token.expired);
|
||||
.format(token.expired.toLocal());
|
||||
final lastUsed =
|
||||
DateFormat.yMd(MainApp.of(context).lang.toLocale().toString())
|
||||
.add_jms()
|
||||
.format(token.lastUsed);
|
||||
.format(token.lastUsed.toLocal());
|
||||
return Card.outlined(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16),
|
||||
|
||||
Reference in New Issue
Block a user