File tree Expand file tree Collapse file tree 2 files changed +8
-11
lines changed
dotcom-rendering/src/components Expand file tree Collapse file tree 2 files changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ type Story = StoryObj<typeof meta>;
35
35
export const Default = {
36
36
args : {
37
37
now : '2025-03-24T15:53:12.604Z' ,
38
- edition : 'UK ' ,
38
+ edition : 'US ' ,
39
39
guardianBaseUrl : 'https://www.theguardian.com' ,
40
40
initialDays,
41
41
getMoreDays : ( ) => Promise . resolve ( ok ( moreDays ) ) ,
Original file line number Diff line number Diff line change @@ -72,15 +72,6 @@ const footballMatchesGridStyles = css`
72
72
}
73
73
` ;
74
74
75
- const getDateFormatter = ( edition : EditionId ) : Intl . DateTimeFormat =>
76
- new Intl . DateTimeFormat ( 'en-GB' , {
77
- weekday : 'long' ,
78
- year : 'numeric' ,
79
- month : 'long' ,
80
- day : 'numeric' ,
81
- timeZone : getTimeZoneFromEdition ( edition ) ,
82
- } ) ;
83
-
84
75
const getTimeFormatter = ( edition : EditionId ) : Intl . DateTimeFormat =>
85
76
new Intl . DateTimeFormat ( getLocaleFromEdition ( edition ) , {
86
77
hour : '2-digit' ,
@@ -392,7 +383,13 @@ export const FootballMatchList = ({
392
383
getMoreDays,
393
384
now,
394
385
} : Props ) => {
395
- const dateFormatter = getDateFormatter ( edition ) ;
386
+ const dateFormatter = new Intl . DateTimeFormat ( 'en-GB' , {
387
+ weekday : 'long' ,
388
+ year : 'numeric' ,
389
+ month : 'long' ,
390
+ day : 'numeric' ,
391
+ timeZone : 'UTC' ,
392
+ } ) ;
396
393
const timeFormatter = getTimeFormatter ( edition ) ;
397
394
398
395
const [ days , setDays ] = useState ( initialDays ) ;
You can’t perform that action at this time.
0 commit comments