From fb52c31f3c0c7fe299b5303e3770c7f8ae868b1a Mon Sep 17 00:00:00 2001 From: martincupela Date: Sun, 2 Jul 2023 11:44:04 +0200 Subject: [PATCH] fix: prevent truncating message timestamps when converting to string --- src/channel_state.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/channel_state.ts b/src/channel_state.ts index 6cbcde57f..2cfb1a95f 100644 --- a/src/channel_state.ts +++ b/src/channel_state.ts @@ -345,9 +345,9 @@ export class ChannelState['formatMessage']>) => (({ ...m, - created_at: m.created_at.toString(), - pinned_at: m.pinned_at?.toString(), - updated_at: m.updated_at?.toString(), + created_at: m.created_at.toISOString(), + pinned_at: m.pinned_at?.toISOString(), + updated_at: m.updated_at?.toISOString(), } as unknown) as MessageResponse); this.messageSets.forEach((set) => {