show message timestamp in local tz
Build Docker and Deploy / Build Docker Container (push) Successful in 2m18s
Build Docker and Deploy / Run Unit-Tests (push) Successful in 7m46s
Build Docker and Deploy / Deploy to Server (push) Successful in 14s

This commit is contained in:
2026-06-26 09:20:07 +02:00
parent bff8257f34
commit 0282bc0f0a
@@ -140,6 +140,7 @@ class _MessageViewPageState extends State<MessageViewPage> {
Widget _buildMessageView(BuildContext context, SCNMessage message, ChannelPreview? channel, KeyTokenPreview? token, UserPreview? user) { Widget _buildMessageView(BuildContext context, SCNMessage message, ChannelPreview? channel, KeyTokenPreview? token, UserPreview? user) {
final userAccUserID = context.select<AppAuth, String?>((v) => v.userID); final userAccUserID = context.select<AppAuth, String?>((v) => v.userID);
final dateFormat = context.select<AppSettings, AppSettingsDateFormat>((v) => v.dateFormat).dateFormat();
var cfg = AppSettings(); var cfg = AppSettings();
@@ -229,7 +230,7 @@ class _MessageViewPageState extends State<MessageViewPage> {
} }
: null, : null,
), ),
UI.metaCard(context: context, icon: FontAwesomeIcons.solidTimer, title: 'Timestamp', values: [message.timestamp]), UI.metaCard(context: context, icon: FontAwesomeIcons.solidTimer, title: 'Timestamp', values: [dateFormat.format(DateTime.parse(message.timestamp).toLocal())]),
if (cfg.showExtendedAttributes) if (cfg.showExtendedAttributes)
UI.metaCard( UI.metaCard(
context: context, context: context,
@@ -319,7 +320,7 @@ class _MessageViewPageState extends State<MessageViewPage> {
children: [ children: [
UI.channelChip(context: context, text: _resolveChannelName(channel, message), margin: const EdgeInsets.fromLTRB(0, 0, 4, 0), fontSize: 16), UI.channelChip(context: context, text: _resolveChannelName(channel, message), margin: const EdgeInsets.fromLTRB(0, 0, 4, 0), fontSize: 16),
Expanded(child: SizedBox()), Expanded(child: SizedBox()),
Text(dateFormat.format(DateTime.parse(message.timestamp)), style: const TextStyle(fontSize: 14)), Text(dateFormat.format(DateTime.parse(message.timestamp).toLocal()), style: const TextStyle(fontSize: 14)),
], ],
), ),
SizedBox(height: 8), SizedBox(height: 8),