-
Notifications
You must be signed in to change notification settings - Fork 352
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Timestamp): allowed displayed datetime to be UTC (#9649)
* feat(Timestamp): allowed displayed datetime to be UTC * Updated rendering of default UTC suffix
- Loading branch information
1 parent
1bc53da
commit 7b3ec92
Showing
5 changed files
with
34 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 7 additions & 1 deletion
8
packages/react-core/src/components/Timestamp/examples/TimestampDefault.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
import React from 'react'; | ||
import { Timestamp } from '@patternfly/react-core'; | ||
|
||
export const TimestampDefault: React.FunctionComponent = () => <Timestamp />; | ||
export const TimestampDefault: React.FunctionComponent = () => ( | ||
<> | ||
<Timestamp /> | ||
<br /> | ||
<Timestamp shouldDisplayUTC /> | ||
</> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters