Skip to content

Commit 2bb46a0

Browse files
authored
Update MovieDetail.jsx
1 parent 84db30d commit 2bb46a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/MovieDetail.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default function MovieDetail() {
66
const [movie, setMovie] = useState(null);
77

88
const formatDateToUTCString = (dateString) => {
9-
const options = { year: 'numeric', month: 'numeric', day: 'numeric' };
9+
const options = { weekday: 'long', day: 'numeric', month: 'long', year: 'numeric' };
1010
const dateInLocalTime = new Date(dateString);
1111
const dateInUTC = new Date(dateInLocalTime.getTime() + dateInLocalTime.getTimezoneOffset() * 60000);
1212
return dateInUTC.toLocaleDateString(undefined, options);
@@ -67,7 +67,7 @@ export default function MovieDetail() {
6767
</div>
6868
<span></span>
6969
<div className="font-weight-bold mr-4">
70-
<span data-testid="movie-runtime">{runtimeText} </span>
70+
<span data-testid="movie-runtime">{runtimeText}<small>min</small></span>
7171
</div>
7272
{movie.genres.map((item) => (
7373
<div

0 commit comments

Comments
 (0)