Skip to content

Commit c36f75c

Browse files
Merge pull request #5112 from topcoder-platform/issue-3215-pkdurlabhji
issue 3215 fix
2 parents 33220f7 + 312d56b commit c36f75c

File tree

1 file changed

+2
-1
lines changed
  • src/shared/components/challenge-detail/Header/DeadlinesPanel/Card

1 file changed

+2
-1
lines changed

src/shared/components/challenge-detail/Header/DeadlinesPanel/Card/index.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import './style.scss';
1010

1111
/* Date/time format to use in the card. */
1212
const FORMAT = 'MMM DD, HH:mm';
13+
const FORMAT_YEAR = 'MMM DD YYYY, HH:mm';
1314

1415
export default function Card({ past, time, title }) {
1516
const time2 = moment(time);
@@ -20,7 +21,7 @@ export default function Card({ past, time, title }) {
2021
{title}
2122
</p>
2223
<p styleName="date">
23-
{time2.format(FORMAT)}
24+
{time2.format(time2.year() !== moment().year() ? FORMAT_YEAR : FORMAT)}
2425
</p>
2526
</div>
2627
);

0 commit comments

Comments
 (0)