-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We want to drop the date-fns runtime dependency, and already did so in all other projects. For consistency, show all dates (such as container creation, health checks, or image history) as relative times via `timeformat.distanceToNow()`, with a tooltip that shows the precise absolute time. This is similar to what we did in machines [1]. Introduce a `RelativeTime` helper component for that, and teach it to accept both ISO-formatted strings as well as raw timestamps to get rid of a few repeated `Date.parse()` calls. Also, most time stamps that we get are in ms (just like `Date` itself), so make it accept that instead of seconds. [1] cockpit-project/cockpit-machines@b63a54e6721
- Loading branch information
1 parent
529cea6
commit 39a8dc5
Showing
7 changed files
with
29 additions
and
20 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
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
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