Fix event date shown as Jan 1970 in Show Details modals

Event createdAt is a Nostr timestamp in seconds, but
TimeUtils.formatLongToCustomDateTimeWithSeconds expects milliseconds
(Instant.ofEpochMilli), so the date always rendered as Jan 21, 1970.
Convert to milliseconds at the call sites, matching how
ActivitiesScreen and ApplicationsScreen already handle it.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RGJT3Vb91p82TwmDZxqGem
This commit is contained in:
Claude
2026-07-15 16:12:27 +00:00
parent bc45c572eb
commit d478c21059
2 changed files with 2 additions and 2 deletions
@@ -97,7 +97,7 @@ fun EncryptDecryptDetailModal(
)
EventSection(
stringResource(R.string.date),
TimeUtils.formatLongToCustomDateTimeWithSeconds(event.createdAt),
TimeUtils.formatLongToCustomDateTimeWithSeconds(event.createdAt * 1000),
{ copyToClipboard(clipboard, "${event.createdAt}") },
)
if (event.content.isNotEmpty()) {
@@ -110,7 +110,7 @@ fun EventDetailModal(
)
EventSection(
stringResource(R.string.date),
TimeUtils.formatLongToCustomDateTimeWithSeconds(event.createdAt),
TimeUtils.formatLongToCustomDateTimeWithSeconds(event.createdAt * 1000),
{
copyToClipboard(clipboard, "${event.createdAt}")
},