File tree Expand file tree Collapse file tree 4 files changed +6
-4
lines changed Expand file tree Collapse file tree 4 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1- export const formatDate = ( date : string ) => new Date ( date ) . toLocaleString ( ) ;
1+ export const formatDateTime = ( date : string ) => new Date ( date ) . toLocaleString ( ) ;
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import {
2222} from "../contexts" ;
2323import { BuildStatusChip } from "./BuildStatusChip" ;
2424import { SkeletonList } from "./SkeletonList" ;
25- import { formatDate } from "../_helpers/format.helper" ;
25+ import { formatDateTime } from "../_helpers/format.helper" ;
2626
2727const useStyles = makeStyles ( ( theme : Theme ) =>
2828 createStyles ( {
@@ -76,7 +76,7 @@ const BuildList: FunctionComponent = () => {
7676 < Grid container direction = "column" >
7777 < Grid item >
7878 < Typography variant = "caption" color = "textPrimary" >
79- { formatDate ( build . createdAt ) }
79+ { formatDateTime ( build . createdAt ) }
8080 </ Typography >
8181 </ Grid >
8282 < Grid item >
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ import {
2727import { Link } from "react-router-dom" ;
2828import { Delete , Add } from "@material-ui/icons" ;
2929import { routes } from "../constants" ;
30+ import { formatDateTime } from "../_helpers/format.helper" ;
3031
3132const ProjectsListPage = ( ) => {
3233 const theme = useTheme ( ) ;
@@ -115,7 +116,7 @@ const ProjectsListPage = () => {
115116 < CardContent >
116117 < Typography > Key: { project . id } </ Typography >
117118 < Typography > Name: { project . name } </ Typography >
118- < Typography > Updated : { project . updatedAt } </ Typography >
119+ < Typography > Created : { formatDateTime ( project . createdAt ) } </ Typography >
119120 </ CardContent >
120121 < CardActions >
121122 < Button
Original file line number Diff line number Diff line change @@ -5,4 +5,5 @@ export interface Project {
55 name : string ;
66 builds : Build [ ] ;
77 updatedAt : string ;
8+ createdAt : string ;
89}
You can’t perform that action at this time.
0 commit comments