fix: Convert timestamps to local time in date formatting across components

This commit is contained in:
2025-01-05 10:31:51 +08:00
parent 2a6866fb26
commit 98be888d3d
4 changed files with 6 additions and 6 deletions

View File

@@ -383,8 +383,8 @@ class _TaskPage extends State<TaskPage> {
? 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),