[MM-56042] Show full timestamp with seconds in tooltip of post date (#25699)

Этот коммит содержится в:
Syed Ali Abbas Zaidi
2023-12-25 12:35:39 +05:00
коммит произвёл GitHub
родитель d23c16b9aa
Коммит 77161715fc

Просмотреть файл

@@ -18,6 +18,7 @@ const POST_TOOLTIP_RANGES = [
RelativeRanges.TODAY_TITLE_CASE,
RelativeRanges.YESTERDAY_TITLE_CASE,
];
const getTimeFormat: ComponentProps<typeof Timestamp>['useTime'] = (_, {hour, minute, second}) => ({hour, minute, second});
type Props = {
@@ -105,6 +106,7 @@ export default class PostTime extends React.PureComponent<Props> {
value={eventTime}
ranges={POST_TOOLTIP_RANGES}
useSemanticOutput={false}
useTime={getTimeFormat}
/>
</Tooltip>
}