Skip to content

Commit b441134

Browse files
committedJan 15, 2023
frontend: Use ISO format for dates tests
Node has changes how they format the dates when using "toLocaleString", introducing a special character (U+202f) instead of a space. Our first instinct was to lower the Node version and wait for a fix, but according to [1], Node doesn't seem to be reverting it soon and mentions one shouldn't use localized strings for testing... So, in order to avoid this, this patch makes the dates show up in ISO format. [1] nodejs/node#46123
1 parent 081bf6b commit b441134

18 files changed

+83
-82
lines changed
 

‎frontend/src/components/common/Resource/__snapshots__/MetadataDisplay.stories.storyshot

+3-3
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ exports[`Storyshots Resource/MetadataDisplay Metadata Display 1`] = `
6464
<span
6565
class="MuiTypography-root makeStyles-valueLabel MuiTypography-body1"
6666
>
67-
6/2/2021, 12:00:00 AM UTC
67+
2021-06-02T00:00:00.000Z
6868
</span>
6969
</td>
7070
</tr>
@@ -188,7 +188,7 @@ exports[`Storyshots Resource/MetadataDisplay With Extra Rows 1`] = `
188188
<span
189189
class="MuiTypography-root makeStyles-valueLabel MuiTypography-body1"
190190
>
191-
6/2/2021, 12:00:00 AM UTC
191+
2021-06-02T00:00:00.000Z
192192
</span>
193193
</td>
194194
</tr>
@@ -372,7 +372,7 @@ exports[`Storyshots Resource/MetadataDisplay With Owner References 1`] = `
372372
<span
373373
class="MuiTypography-root makeStyles-valueLabel MuiTypography-body1"
374374
>
375-
6/2/2021, 12:00:00 AM UTC
375+
2021-06-02T00:00:00.000Z
376376
</span>
377377
</td>
378378
</tr>

‎frontend/src/components/common/Resource/__snapshots__/ResourceTable.stories.storyshot

+5-5
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ exports[`Storyshots ResourceTable Name Search 1`] = `
104104
>
105105
<p
106106
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
107-
title="12/15/2021, 2:57:13 PM UTC"
107+
title="2021-12-15T14:57:13.000Z"
108108
>
109109
3mo
110110
<span />
@@ -220,7 +220,7 @@ exports[`Storyshots ResourceTable No Filter 1`] = `
220220
>
221221
<p
222222
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
223-
title="12/15/2021, 2:57:13 PM UTC"
223+
title="2021-12-15T14:57:13.000Z"
224224
>
225225
3mo
226226
<span />
@@ -251,7 +251,7 @@ exports[`Storyshots ResourceTable No Filter 1`] = `
251251
>
252252
<p
253253
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
254-
title="12/15/2021, 2:57:13 PM UTC"
254+
title="2021-12-15T14:57:13.000Z"
255255
>
256256
3mo
257257
<span />
@@ -282,7 +282,7 @@ exports[`Storyshots ResourceTable No Filter 1`] = `
282282
>
283283
<p
284284
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
285-
title="12/15/2021, 2:57:13 PM UTC"
285+
title="2021-12-15T14:57:13.000Z"
286286
>
287287
3mo
288288
<span />
@@ -313,7 +313,7 @@ exports[`Storyshots ResourceTable No Filter 1`] = `
313313
>
314314
<p
315315
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
316-
title="12/15/2021, 2:57:13 PM UTC"
316+
title="2021-12-15T14:57:13.000Z"
317317
>
318318
3mo
319319
<span />

‎frontend/src/components/crd/__snapshots__/CustomResourceDetails.stories.storyshot

+1-1
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ exports[`Storyshots crd/CustomResourceDetails No Error 1`] = `
230230
<span
231231
class="MuiTypography-root makeStyles-valueLabel MuiTypography-body1"
232232
>
233-
12/15/2021, 2:57:13 PM UTC
233+
2021-12-15T14:57:13.000Z
234234
</span>
235235
</td>
236236
</tr>

‎frontend/src/components/cronjob/__snapshots__/CronJobDetails.stories.storyshot

+2-2
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ exports[`Storyshots CronJob/CronJobDetailsView Every Ast 1`] = `
155155
<span
156156
class="MuiTypography-root makeStyles-valueLabel MuiTypography-body1"
157157
>
158-
1/1/2022, 12:00:00 AM UTC
158+
2022-01-01T00:00:00.000Z
159159
</span>
160160
</td>
161161
</tr>
@@ -476,7 +476,7 @@ exports[`Storyshots CronJob/CronJobDetailsView Every Minute 1`] = `
476476
<span
477477
class="MuiTypography-root makeStyles-valueLabel MuiTypography-body1"
478478
>
479-
1/1/2022, 12:00:00 AM UTC
479+
2022-01-01T00:00:00.000Z
480480
</span>
481481
</td>
482482
</tr>

‎frontend/src/components/endpoints/__snapshots__/EndpointDetails.stories.storyshot

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ exports[`Storyshots endpoints/EndpointsDetailsView Default 1`] = `
129129
<span
130130
class="MuiTypography-root makeStyles-valueLabel MuiTypography-body1"
131131
>
132-
4/25/2020, 12:00:00 AM UTC
132+
2020-04-25T00:00:00.000Z
133133
</span>
134134
</td>
135135
</tr>

‎frontend/src/components/endpoints/__snapshots__/EndpointList.stories.storyshot

+5-5
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ exports[`Storyshots endpoints/EndpointsListView Items 1`] = `
166166
>
167167
<p
168168
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
169-
title="1/1/2020, 12:00:00 AM UTC"
169+
title="2020-01-01T00:00:00.000Z"
170170
>
171171
3mo
172172
<span />
@@ -203,7 +203,7 @@ exports[`Storyshots endpoints/EndpointsListView Items 1`] = `
203203
>
204204
<p
205205
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
206-
title="1/1/2020, 12:00:00 AM UTC"
206+
title="2020-01-01T00:00:00.000Z"
207207
>
208208
3mo
209209
<span />
@@ -240,7 +240,7 @@ exports[`Storyshots endpoints/EndpointsListView Items 1`] = `
240240
>
241241
<p
242242
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
243-
title="1/1/2020, 12:00:00 AM UTC"
243+
title="2020-01-01T00:00:00.000Z"
244244
>
245245
3mo
246246
<span />
@@ -277,7 +277,7 @@ exports[`Storyshots endpoints/EndpointsListView Items 1`] = `
277277
>
278278
<p
279279
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
280-
title="1/1/2020, 12:00:00 AM UTC"
280+
title="2020-01-01T00:00:00.000Z"
281281
>
282282
3mo
283283
<span />
@@ -314,7 +314,7 @@ exports[`Storyshots endpoints/EndpointsListView Items 1`] = `
314314
>
315315
<p
316316
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
317-
title="1/1/2020, 12:00:00 AM UTC"
317+
title="2020-01-01T00:00:00.000Z"
318318
>
319319
3mo
320320
<span />

‎frontend/src/components/horizontalPodAutoscaler/__snapshots__/HPADetails.stories.storyshot

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ exports[`Storyshots hpa/HpaDetailsView Default 1`] = `
155155
<span
156156
class="MuiTypography-root makeStyles-valueLabel MuiTypography-body1"
157157
>
158-
10/20/2022, 11:10:58 AM UTC
158+
2022-10-20T11:10:58.000Z
159159
</span>
160160
</td>
161161
</tr>

‎frontend/src/components/horizontalPodAutoscaler/__snapshots__/HPAList.stories.storyshot

+5-5
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ exports[`Storyshots hpa/HpaListView Items 1`] = `
267267
>
268268
<p
269269
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
270-
title="1/1/2020, 12:00:00 AM UTC"
270+
title="2020-01-01T00:00:00.000Z"
271271
>
272272
3mo
273273
<span />
@@ -337,7 +337,7 @@ exports[`Storyshots hpa/HpaListView Items 1`] = `
337337
>
338338
<p
339339
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
340-
title="1/1/2020, 12:00:00 AM UTC"
340+
title="2020-01-01T00:00:00.000Z"
341341
>
342342
3mo
343343
<span />
@@ -407,7 +407,7 @@ exports[`Storyshots hpa/HpaListView Items 1`] = `
407407
>
408408
<p
409409
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
410-
title="1/1/2020, 12:00:00 AM UTC"
410+
title="2020-01-01T00:00:00.000Z"
411411
>
412412
3mo
413413
<span />
@@ -477,7 +477,7 @@ exports[`Storyshots hpa/HpaListView Items 1`] = `
477477
>
478478
<p
479479
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
480-
title="1/1/2020, 12:00:00 AM UTC"
480+
title="2020-01-01T00:00:00.000Z"
481481
>
482482
3mo
483483
<span />
@@ -547,7 +547,7 @@ exports[`Storyshots hpa/HpaListView Items 1`] = `
547547
>
548548
<p
549549
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
550-
title="1/1/2020, 12:00:00 AM UTC"
550+
title="2020-01-01T00:00:00.000Z"
551551
>
552552
3mo
553553
<span />

‎frontend/src/components/pod/__snapshots__/PodDetails.stories.storyshot

+30-30
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ exports[`Storyshots Pod/PodDetailsView Error 1`] = `
161161
<span
162162
class="MuiTypography-root makeStyles-valueLabel MuiTypography-body1"
163163
>
164-
1/1/2022, 12:00:00 AM UTC
164+
2022-01-01T00:00:00.000Z
165165
</span>
166166
</td>
167167
</tr>
@@ -361,7 +361,7 @@ exports[`Storyshots Pod/PodDetailsView Error 1`] = `
361361
>
362362
<p
363363
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
364-
title="1/1/2022, 12:05:00 AM UTC"
364+
title="2022-01-01T00:05:00.000Z"
365365
>
366366
3 months
367367
<span />
@@ -401,7 +401,7 @@ exports[`Storyshots Pod/PodDetailsView Error 1`] = `
401401
>
402402
<p
403403
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
404-
title="1/1/2022, 12:05:00 AM UTC"
404+
title="2022-01-01T00:05:00.000Z"
405405
>
406406
3 months
407407
<span />
@@ -446,7 +446,7 @@ exports[`Storyshots Pod/PodDetailsView Error 1`] = `
446446
>
447447
<p
448448
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
449-
title="1/1/2022, 12:05:00 AM UTC"
449+
title="2022-01-01T00:05:00.000Z"
450450
>
451451
3 months
452452
<span />
@@ -491,7 +491,7 @@ exports[`Storyshots Pod/PodDetailsView Error 1`] = `
491491
>
492492
<p
493493
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
494-
title="1/1/2022, 12:05:00 AM UTC"
494+
title="2022-01-01T00:05:00.000Z"
495495
>
496496
3 months
497497
<span />
@@ -879,7 +879,7 @@ exports[`Storyshots Pod/PodDetailsView Initializing 1`] = `
879879
<span
880880
class="MuiTypography-root makeStyles-valueLabel MuiTypography-body1"
881881
>
882-
1/1/2022, 12:00:00 AM UTC
882+
2022-01-01T00:00:00.000Z
883883
</span>
884884
</td>
885885
</tr>
@@ -1072,7 +1072,7 @@ exports[`Storyshots Pod/PodDetailsView Initializing 1`] = `
10721072
>
10731073
<p
10741074
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
1075-
title="1/1/2022, 12:05:00 AM UTC"
1075+
title="2022-01-01T00:05:00.000Z"
10761076
>
10771077
3 months
10781078
<span />
@@ -1118,7 +1118,7 @@ exports[`Storyshots Pod/PodDetailsView Initializing 1`] = `
11181118
>
11191119
<p
11201120
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
1121-
title="1/1/2022, 12:05:00 AM UTC"
1121+
title="2022-01-01T00:05:00.000Z"
11221122
>
11231123
3 months
11241124
<span />
@@ -1164,7 +1164,7 @@ exports[`Storyshots Pod/PodDetailsView Initializing 1`] = `
11641164
>
11651165
<p
11661166
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
1167-
title="1/1/2022, 12:05:00 AM UTC"
1167+
title="2022-01-01T00:05:00.000Z"
11681168
>
11691169
3 months
11701170
<span />
@@ -1210,7 +1210,7 @@ exports[`Storyshots Pod/PodDetailsView Initializing 1`] = `
12101210
>
12111211
<p
12121212
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
1213-
title="1/1/2022, 12:05:00 AM UTC"
1213+
title="2022-01-01T00:05:00.000Z"
12141214
>
12151215
3 months
12161216
<span />
@@ -1581,7 +1581,7 @@ exports[`Storyshots Pod/PodDetailsView Liveness Failed 1`] = `
15811581
<span
15821582
class="MuiTypography-root makeStyles-valueLabel MuiTypography-body1"
15831583
>
1584-
1/1/2022, 12:00:00 AM UTC
1584+
2022-01-01T00:00:00.000Z
15851585
</span>
15861586
</td>
15871587
</tr>
@@ -1781,7 +1781,7 @@ exports[`Storyshots Pod/PodDetailsView Liveness Failed 1`] = `
17811781
>
17821782
<p
17831783
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
1784-
title="1/1/2022, 12:05:00 AM UTC"
1784+
title="2022-01-01T00:05:00.000Z"
17851785
>
17861786
3 months
17871787
<span />
@@ -1821,7 +1821,7 @@ exports[`Storyshots Pod/PodDetailsView Liveness Failed 1`] = `
18211821
>
18221822
<p
18231823
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
1824-
title="1/1/2022, 12:05:00 AM UTC"
1824+
title="2022-01-01T00:05:00.000Z"
18251825
>
18261826
3 months
18271827
<span />
@@ -1867,7 +1867,7 @@ exports[`Storyshots Pod/PodDetailsView Liveness Failed 1`] = `
18671867
>
18681868
<p
18691869
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
1870-
title="1/1/2022, 12:05:00 AM UTC"
1870+
title="2022-01-01T00:05:00.000Z"
18711871
>
18721872
3 months
18731873
<span />
@@ -1913,7 +1913,7 @@ exports[`Storyshots Pod/PodDetailsView Liveness Failed 1`] = `
19131913
>
19141914
<p
19151915
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
1916-
title="1/1/2022, 12:05:00 AM UTC"
1916+
title="2022-01-01T00:05:00.000Z"
19171917
>
19181918
3 months
19191919
<span />
@@ -2397,7 +2397,7 @@ exports[`Storyshots Pod/PodDetailsView Pull Back Off 1`] = `
23972397
<span
23982398
class="MuiTypography-root makeStyles-valueLabel MuiTypography-body1"
23992399
>
2400-
1/1/2022, 12:00:00 AM UTC
2400+
2022-01-01T00:00:00.000Z
24012401
</span>
24022402
</td>
24032403
</tr>
@@ -2590,7 +2590,7 @@ exports[`Storyshots Pod/PodDetailsView Pull Back Off 1`] = `
25902590
>
25912591
<p
25922592
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
2593-
title="1/1/2022, 12:05:00 AM UTC"
2593+
title="2022-01-01T00:05:00.000Z"
25942594
>
25952595
3 months
25962596
<span />
@@ -2630,7 +2630,7 @@ exports[`Storyshots Pod/PodDetailsView Pull Back Off 1`] = `
26302630
>
26312631
<p
26322632
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
2633-
title="1/1/2022, 12:05:00 AM UTC"
2633+
title="2022-01-01T00:05:00.000Z"
26342634
>
26352635
3 months
26362636
<span />
@@ -2676,7 +2676,7 @@ exports[`Storyshots Pod/PodDetailsView Pull Back Off 1`] = `
26762676
>
26772677
<p
26782678
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
2679-
title="1/1/2022, 12:05:00 AM UTC"
2679+
title="2022-01-01T00:05:00.000Z"
26802680
>
26812681
3 months
26822682
<span />
@@ -2722,7 +2722,7 @@ exports[`Storyshots Pod/PodDetailsView Pull Back Off 1`] = `
27222722
>
27232723
<p
27242724
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
2725-
title="1/1/2022, 12:05:00 AM UTC"
2725+
title="2022-01-01T00:05:00.000Z"
27262726
>
27272727
3 months
27282728
<span />
@@ -3082,7 +3082,7 @@ exports[`Storyshots Pod/PodDetailsView Running 1`] = `
30823082
<span
30833083
class="MuiTypography-root makeStyles-valueLabel MuiTypography-body1"
30843084
>
3085-
1/1/2022, 12:00:00 AM UTC
3085+
2022-01-01T00:00:00.000Z
30863086
</span>
30873087
</td>
30883088
</tr>
@@ -3275,7 +3275,7 @@ exports[`Storyshots Pod/PodDetailsView Running 1`] = `
32753275
>
32763276
<p
32773277
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
3278-
title="1/1/2022, 12:05:00 AM UTC"
3278+
title="2022-01-01T00:05:00.000Z"
32793279
>
32803280
3 months
32813281
<span />
@@ -3315,7 +3315,7 @@ exports[`Storyshots Pod/PodDetailsView Running 1`] = `
33153315
>
33163316
<p
33173317
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
3318-
title="1/1/2022, 12:05:00 AM UTC"
3318+
title="2022-01-01T00:05:00.000Z"
33193319
>
33203320
3 months
33213321
<span />
@@ -3355,7 +3355,7 @@ exports[`Storyshots Pod/PodDetailsView Running 1`] = `
33553355
>
33563356
<p
33573357
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
3358-
title="1/1/2022, 12:05:00 AM UTC"
3358+
title="2022-01-01T00:05:00.000Z"
33593359
>
33603360
3 months
33613361
<span />
@@ -3395,7 +3395,7 @@ exports[`Storyshots Pod/PodDetailsView Running 1`] = `
33953395
>
33963396
<p
33973397
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
3398-
title="1/1/2022, 12:05:00 AM UTC"
3398+
title="2022-01-01T00:05:00.000Z"
33993399
>
34003400
3 months
34013401
<span />
@@ -3804,7 +3804,7 @@ exports[`Storyshots Pod/PodDetailsView Successful 1`] = `
38043804
<span
38053805
class="MuiTypography-root makeStyles-valueLabel MuiTypography-body1"
38063806
>
3807-
1/1/2022, 12:00:00 AM UTC
3807+
2022-01-01T00:00:00.000Z
38083808
</span>
38093809
</td>
38103810
</tr>
@@ -3997,7 +3997,7 @@ exports[`Storyshots Pod/PodDetailsView Successful 1`] = `
39973997
>
39983998
<p
39993999
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
4000-
title="1/1/2022, 12:05:00 AM UTC"
4000+
title="2022-01-01T00:05:00.000Z"
40014001
>
40024002
3 months
40034003
<span />
@@ -4042,7 +4042,7 @@ exports[`Storyshots Pod/PodDetailsView Successful 1`] = `
40424042
>
40434043
<p
40444044
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
4045-
title="1/1/2022, 12:05:00 AM UTC"
4045+
title="2022-01-01T00:05:00.000Z"
40464046
>
40474047
3 months
40484048
<span />
@@ -4087,7 +4087,7 @@ exports[`Storyshots Pod/PodDetailsView Successful 1`] = `
40874087
>
40884088
<p
40894089
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
4090-
title="1/1/2022, 12:05:00 AM UTC"
4090+
title="2022-01-01T00:05:00.000Z"
40914091
>
40924092
3 months
40934093
<span />
@@ -4132,7 +4132,7 @@ exports[`Storyshots Pod/PodDetailsView Successful 1`] = `
41324132
>
41334133
<p
41344134
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
4135-
title="1/1/2022, 12:05:00 AM UTC"
4135+
title="2022-01-01T00:05:00.000Z"
41364136
>
41374137
3 months
41384138
<span />

‎frontend/src/components/pod/__snapshots__/PodList.stories.storyshot

+6-6
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ exports[`Storyshots Pod/PodListView Items 1`] = `
226226
>
227227
<p
228228
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
229-
title="1/1/2022, 12:00:00 AM UTC"
229+
title="2022-01-01T00:00:00.000Z"
230230
>
231231
3mo
232232
<span />
@@ -282,7 +282,7 @@ exports[`Storyshots Pod/PodListView Items 1`] = `
282282
>
283283
<p
284284
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
285-
title="1/1/2022, 12:00:00 AM UTC"
285+
title="2022-01-01T00:00:00.000Z"
286286
>
287287
3mo
288288
<span />
@@ -338,7 +338,7 @@ exports[`Storyshots Pod/PodListView Items 1`] = `
338338
>
339339
<p
340340
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
341-
title="1/1/2022, 12:00:00 AM UTC"
341+
title="2022-01-01T00:00:00.000Z"
342342
>
343343
3mo
344344
<span />
@@ -401,7 +401,7 @@ exports[`Storyshots Pod/PodListView Items 1`] = `
401401
>
402402
<p
403403
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
404-
title="1/1/2022, 12:00:00 AM UTC"
404+
title="2022-01-01T00:00:00.000Z"
405405
>
406406
3mo
407407
<span />
@@ -464,7 +464,7 @@ exports[`Storyshots Pod/PodListView Items 1`] = `
464464
>
465465
<p
466466
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
467-
title="1/1/2022, 12:00:00 AM UTC"
467+
title="2022-01-01T00:00:00.000Z"
468468
>
469469
3mo
470470
<span />
@@ -520,7 +520,7 @@ exports[`Storyshots Pod/PodListView Items 1`] = `
520520
>
521521
<p
522522
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
523-
title="1/1/2022, 12:00:00 AM UTC"
523+
title="2022-01-01T00:00:00.000Z"
524524
>
525525
3mo
526526
<span />

‎frontend/src/components/pod/__snapshots__/PodLogs.stories.storyshot

+5-5
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ exports[`Storyshots Pod/PodLogs Logs 1`] = `
180180
<span
181181
class="MuiTypography-root makeStyles-valueLabel MuiTypography-body1"
182182
>
183-
1/1/2022, 12:00:00 AM UTC
183+
2022-01-01T00:00:00.000Z
184184
</span>
185185
</td>
186186
</tr>
@@ -373,7 +373,7 @@ exports[`Storyshots Pod/PodLogs Logs 1`] = `
373373
>
374374
<p
375375
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
376-
title="1/1/2022, 12:05:00 AM UTC"
376+
title="2022-01-01T00:05:00.000Z"
377377
>
378378
3 months
379379
<span />
@@ -413,7 +413,7 @@ exports[`Storyshots Pod/PodLogs Logs 1`] = `
413413
>
414414
<p
415415
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
416-
title="1/1/2022, 12:05:00 AM UTC"
416+
title="2022-01-01T00:05:00.000Z"
417417
>
418418
3 months
419419
<span />
@@ -453,7 +453,7 @@ exports[`Storyshots Pod/PodLogs Logs 1`] = `
453453
>
454454
<p
455455
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
456-
title="1/1/2022, 12:05:00 AM UTC"
456+
title="2022-01-01T00:05:00.000Z"
457457
>
458458
3 months
459459
<span />
@@ -493,7 +493,7 @@ exports[`Storyshots Pod/PodLogs Logs 1`] = `
493493
>
494494
<p
495495
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
496-
title="1/1/2022, 12:05:00 AM UTC"
496+
title="2022-01-01T00:05:00.000Z"
497497
>
498498
3 months
499499
<span />

‎frontend/src/components/podDisruptionBudget/__snapshots__/pdbDetails.stories.storyshot

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ exports[`Storyshots pdb/PDBDetailsView Default 1`] = `
155155
<span
156156
class="MuiTypography-root makeStyles-valueLabel MuiTypography-body1"
157157
>
158-
10/6/2022, 5:17:14 AM UTC
158+
2022-10-06T05:17:14.000Z
159159
</span>
160160
</td>
161161
</tr>

‎frontend/src/components/podDisruptionBudget/__snapshots__/pdbList.stories.storyshot

+5-5
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ exports[`Storyshots PDB/PDBListView Items 1`] = `
201201
>
202202
<p
203203
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
204-
title="1/1/2020, 12:00:00 AM UTC"
204+
title="2020-01-01T00:00:00.000Z"
205205
>
206206
3mo
207207
<span />
@@ -247,7 +247,7 @@ exports[`Storyshots PDB/PDBListView Items 1`] = `
247247
>
248248
<p
249249
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
250-
title="1/1/2020, 12:00:00 AM UTC"
250+
title="2020-01-01T00:00:00.000Z"
251251
>
252252
3mo
253253
<span />
@@ -293,7 +293,7 @@ exports[`Storyshots PDB/PDBListView Items 1`] = `
293293
>
294294
<p
295295
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
296-
title="1/1/2020, 12:00:00 AM UTC"
296+
title="2020-01-01T00:00:00.000Z"
297297
>
298298
3mo
299299
<span />
@@ -339,7 +339,7 @@ exports[`Storyshots PDB/PDBListView Items 1`] = `
339339
>
340340
<p
341341
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
342-
title="1/1/2020, 12:00:00 AM UTC"
342+
title="2020-01-01T00:00:00.000Z"
343343
>
344344
3mo
345345
<span />
@@ -385,7 +385,7 @@ exports[`Storyshots PDB/PDBListView Items 1`] = `
385385
>
386386
<p
387387
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
388-
title="1/1/2020, 12:00:00 AM UTC"
388+
title="2020-01-01T00:00:00.000Z"
389389
>
390390
3mo
391391
<span />

‎frontend/src/components/priorityClass/__snapshots__/priorityClassDetails.stories.storyshot

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ exports[`Storyshots PriorityClasses/PriorityClassesDetailsView Default 1`] = `
135135
<span
136136
class="MuiTypography-root makeStyles-valueLabel MuiTypography-body1"
137137
>
138-
10/26/2022, 1:46:17 PM UTC
138+
2022-10-26T13:46:17.000Z
139139
</span>
140140
</td>
141141
</tr>

‎frontend/src/components/priorityClass/__snapshots__/priorityClassList.stories.storyshot

+5-5
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ exports[`Storyshots PriorityClasses/PriorityClassesListView Items 1`] = `
149149
>
150150
<p
151151
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
152-
title="1/1/2020, 12:00:00 AM UTC"
152+
title="2020-01-01T00:00:00.000Z"
153153
>
154154
3mo
155155
<span />
@@ -185,7 +185,7 @@ exports[`Storyshots PriorityClasses/PriorityClassesListView Items 1`] = `
185185
>
186186
<p
187187
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
188-
title="1/1/2020, 12:00:00 AM UTC"
188+
title="2020-01-01T00:00:00.000Z"
189189
>
190190
3mo
191191
<span />
@@ -221,7 +221,7 @@ exports[`Storyshots PriorityClasses/PriorityClassesListView Items 1`] = `
221221
>
222222
<p
223223
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
224-
title="1/1/2020, 12:00:00 AM UTC"
224+
title="2020-01-01T00:00:00.000Z"
225225
>
226226
3mo
227227
<span />
@@ -257,7 +257,7 @@ exports[`Storyshots PriorityClasses/PriorityClassesListView Items 1`] = `
257257
>
258258
<p
259259
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
260-
title="1/1/2020, 12:00:00 AM UTC"
260+
title="2020-01-01T00:00:00.000Z"
261261
>
262262
3mo
263263
<span />
@@ -293,7 +293,7 @@ exports[`Storyshots PriorityClasses/PriorityClassesListView Items 1`] = `
293293
>
294294
<p
295295
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
296-
title="1/1/2020, 12:00:00 AM UTC"
296+
title="2020-01-01T00:00:00.000Z"
297297
>
298298
3mo
299299
<span />

‎frontend/src/components/resourceQuota/__snapshots__/resourceQuotaDetails.stories.storyshot

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ exports[`Storyshots ResourceQuota/ResourceQuotaDetailsView Default 1`] = `
155155
<span
156156
class="MuiTypography-root makeStyles-valueLabel MuiTypography-body1"
157157
>
158-
10/25/2022, 11:48:48 AM UTC
158+
2022-10-25T11:48:48.000Z
159159
</span>
160160
</td>
161161
</tr>

‎frontend/src/components/resourceQuota/__snapshots__/resourceQuotaList.stories.storyshot

+5-5
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ exports[`Storyshots ResourceQuota/ResourceQuotaListView Items 1`] = `
185185
>
186186
<p
187187
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
188-
title="1/1/2020, 12:00:00 AM UTC"
188+
title="2020-01-01T00:00:00.000Z"
189189
>
190190
3mo
191191
<span />
@@ -236,7 +236,7 @@ exports[`Storyshots ResourceQuota/ResourceQuotaListView Items 1`] = `
236236
>
237237
<p
238238
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
239-
title="1/1/2020, 12:00:00 AM UTC"
239+
title="2020-01-01T00:00:00.000Z"
240240
>
241241
3mo
242242
<span />
@@ -287,7 +287,7 @@ exports[`Storyshots ResourceQuota/ResourceQuotaListView Items 1`] = `
287287
>
288288
<p
289289
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
290-
title="1/1/2020, 12:00:00 AM UTC"
290+
title="2020-01-01T00:00:00.000Z"
291291
>
292292
3mo
293293
<span />
@@ -338,7 +338,7 @@ exports[`Storyshots ResourceQuota/ResourceQuotaListView Items 1`] = `
338338
>
339339
<p
340340
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
341-
title="1/1/2020, 12:00:00 AM UTC"
341+
title="2020-01-01T00:00:00.000Z"
342342
>
343343
3mo
344344
<span />
@@ -389,7 +389,7 @@ exports[`Storyshots ResourceQuota/ResourceQuotaListView Items 1`] = `
389389
>
390390
<p
391391
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
392-
title="1/1/2020, 12:00:00 AM UTC"
392+
title="2020-01-01T00:00:00.000Z"
393393
>
394394
3mo
395395
<span />

‎frontend/src/lib/util.ts

+1
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ export function localeDate(date: DateParam) {
7878
options.timeZone = 'UTC';
7979
options.hour12 = true;
8080
locale = 'en-US';
81+
return new Date(date).toISOString();
8182
} else {
8283
options.timeZone = Intl.DateTimeFormat().resolvedOptions().timeZone;
8384
}

0 commit comments

Comments
 (0)
Please sign in to comment.