File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
source/views/streaming/streams Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -78,10 +78,8 @@ export class StreamListView extends React.PureComponent<Props, State> {
7878
7979 let params = {
8080 sort : 'ascending' ,
81- // eslint-disable-next-line camelcase
82- date_from : dateFrom ,
83- // eslint-disable-next-line camelcase
84- date_to : dateTo ,
81+ dateFrom,
82+ dateTo,
8583 }
8684
8785 const data = await fetchJson ( API ( '/streams/upcoming' , params ) )
@@ -90,7 +88,7 @@ export class StreamListView extends React.PureComponent<Props, State> {
9088 const processed = data
9189 . filter ( stream => stream . category !== 'athletics' )
9290 . map ( stream => {
93- const date = moment ( stream . starttime , 'YYYY-MM-DD HH:mm' )
91+ const date = moment ( stream . starttime )
9492 const group =
9593 stream . status !== 'live' ? date . format ( 'dddd, MMMM Do' ) : 'Live'
9694
Original file line number Diff line number Diff line change @@ -31,10 +31,9 @@ function Info({item}: {item: StreamType}) {
3131}
3232
3333function Time ( { item} : { item : StreamType } ) {
34- const streamDate = moment ( item . date )
3534 const showTime = item . status !== 'archived'
3635 return showTime ? (
37- < Detail > { streamDate . format ( 'h:mm A – ddd, MMM. Do, YYYY' ) } </ Detail >
36+ < Detail > { moment ( item . date ) . format ( 'h:mm A – ddd, MMM. Do, YYYY' ) } </ Detail >
3837 ) : null
3938}
4039
You can’t perform that action at this time.
0 commit comments