From 77161715fc14c3935e25d4355c88df7c575742d1 Mon Sep 17 00:00:00 2001 From: Syed Ali Abbas Zaidi <88369802+Syed-Ali-Abbas-Zaidi@users.noreply.github.com> Date: Mon, 25 Dec 2023 12:35:39 +0500 Subject: [PATCH] [MM-56042] Show full timestamp with seconds in tooltip of post date (#25699) --- .../channels/src/components/post_view/post_time/post_time.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webapp/channels/src/components/post_view/post_time/post_time.tsx b/webapp/channels/src/components/post_view/post_time/post_time.tsx index ac88a9a8de..f66ea841f9 100644 --- a/webapp/channels/src/components/post_view/post_time/post_time.tsx +++ b/webapp/channels/src/components/post_view/post_time/post_time.tsx @@ -18,6 +18,7 @@ const POST_TOOLTIP_RANGES = [ RelativeRanges.TODAY_TITLE_CASE, RelativeRanges.YESTERDAY_TITLE_CASE, ]; +const getTimeFormat: ComponentProps['useTime'] = (_, {hour, minute, second}) => ({hour, minute, second}); type Props = { @@ -105,6 +106,7 @@ export default class PostTime extends React.PureComponent { value={eventTime} ranges={POST_TOOLTIP_RANGES} useSemanticOutput={false} + useTime={getTimeFormat} /> }