diff --git a/lib/components/gallery_info_desktop.dart b/lib/components/gallery_info_desktop.dart index f426b08..eb9b51c 100644 --- a/lib/components/gallery_info_desktop.dart +++ b/lib/components/gallery_info_desktop.dart @@ -127,7 +127,7 @@ class GalleryInfoDesktop extends StatelessWidget { "${i18n.posted}${i18n.colon}", DateFormat.yMd(locale) .add_jms() - .format(gData.meta.posted), + .format(gData.meta.posted.toLocal()), maxLines: 2, minLines: 1, fontSize: 12, diff --git a/lib/components/gallery_info_detail.dart b/lib/components/gallery_info_detail.dart index dd89446..e689bb5 100644 --- a/lib/components/gallery_info_detail.dart +++ b/lib/components/gallery_info_detail.dart @@ -32,7 +32,7 @@ class GalleryInfoDetail extends StatelessWidget { mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ Rate(meta.rating, fontSize: 14), - Text(DateFormat.yMd(locale).add_jms().format(meta.posted), + Text(DateFormat.yMd(locale).add_jms().format(meta.posted.toLocal()), style: TextStyle(color: cs.secondary)), ], ), diff --git a/lib/components/session_card.dart b/lib/components/session_card.dart index 6d550f4..febfc04 100644 --- a/lib/components/session_card.dart +++ b/lib/components/session_card.dart @@ -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), diff --git a/lib/dialog/task_page.dart b/lib/dialog/task_page.dart index 2a1fd1f..8da3186 100644 --- a/lib/dialog/task_page.dart +++ b/lib/dialog/task_page.dart @@ -383,8 +383,8 @@ class _TaskPage extends State { ? Divider(indent: indent, endIndent: endIndent) : Container(), posted != null - ? _KeyValue( - i18n.posted, DateFormat.yMd(locale).add_jms().format(posted), + ? _KeyValue(i18n.posted, + DateFormat.yMd(locale).add_jms().format(posted.toLocal()), fontSize: 16) : Container(), Divider(indent: indent, endIndent: endIndent),