Skip to content

Commit

Permalink
fix minutes format in conversation history list (#130)
Browse files Browse the repository at this point in the history
Signed-off-by: Lin Wang <wonglam@amazon.com>
  • Loading branch information
wanglam authored Feb 5, 2024
1 parent a356031 commit 4f7c92b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions public/tabs/history/__tests__/chat_history_list.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ describe('<ChatHistoryList />', () => {

expect(getByText('foo')).toBeInTheDocument();
expect(getByText('bar')).toBeInTheDocument();
expect(getByText('January 1, 1970 at 12:0 AM')).toBeInTheDocument();
expect(getByText('January 1, 1970 at 12:6 AM')).toBeInTheDocument();
expect(getByText('January 1, 1970 at 12:00 AM')).toBeInTheDocument();
expect(getByText('January 1, 1970 at 12:06 AM')).toBeInTheDocument();
expect(getAllByLabelText('history horizontal rule')).toHaveLength(1);
});

Expand Down
2 changes: 1 addition & 1 deletion public/tabs/history/chat_history_list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const ChatHistoryListItem = ({
</EuiLink>
<EuiText size="s" color="subdued">
{moment(updatedTimeMs).format('MMMM D, YYYY')} at{' '}
{moment(updatedTimeMs).format('h:m A')}
{moment(updatedTimeMs).format('h:mm A')}
</EuiText>
</EuiFlexItem>
<EuiFlexItem grow={false}>
Expand Down

0 comments on commit 4f7c92b

Please sign in to comment.