Skip to content

Commit 2fec250

Browse files
authored
Merge pull request #1882 from topcoder-platform/issue_1867
Fix for Issue #1867
2 parents 62d38cf + 3723417 commit 2fec250

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

__tests__/shared/components/Dashboard/SRM/SRMTile.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ jest.mock('utils/tc', () => ({
1313
return 'Dec';
1414
case 'hh:mm a':
1515
return '08:00 am';
16-
case 'z':
17-
return 'EET';
16+
case 'Z':
17+
return '2019-12-31T08:00:00.000Z';
1818
default:
1919
return '2019-12-31T08:00:00.000Z';
2020
}

__tests__/shared/components/Dashboard/SRM/__snapshots__/SRMTile.jsx.snap

+4-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ exports[`Matches shallow shapshot 1`] = `
4747
<span
4848
className="src-shared-components-Dashboard-SRM-___SRMTile__time-zone___1PwD_"
4949
>
50-
EET
50+
UTC
51+
2019-12-31T08:00:00.000Z
5152
</span>
5253
</div>
5354
</div>
@@ -111,7 +112,8 @@ exports[`Matches shallow shapshot 2`] = `
111112
<span
112113
className="src-shared-components-Dashboard-SRM-___SRMTile__time-zone___1PwD_"
113114
>
114-
EET
115+
UTC
116+
2019-12-31T08:00:00.000Z
115117
</span>
116118
</div>
117119
</div>

src/shared/components/Dashboard/SRM/SRMTile.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const SRMTile = (props) => {
4242
{localTime(srm.rounds[0].registrationStartAt, 'hh:mm a')}
4343
</span>
4444
<span styleName="time-zone">
45-
{localTime(srm.rounds[0].registrationStartAt, 'z')}
45+
UTC{localTime(srm.rounds[0].registrationStartAt, 'Z')}
4646
</span>
4747
</div>
4848
</div>

0 commit comments

Comments
 (0)