Skip to content

Commit b863497

Browse files
committed
Provide time as argument to function
1 parent b5a07d0 commit b863497

File tree

1 file changed

+1
-2
lines changed
  • source/views/streaming/streams

1 file changed

+1
-2
lines changed

source/views/streaming/streams/list.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,8 @@ export class StreamListView extends React.PureComponent {
6969
this.setState(() => ({refreshing: false}))
7070
}
7171

72-
getStreams = async () => {
72+
getStreams = async (date: moment = moment.tz(CENTRAL_TZ)) => {
7373
try {
74-
const date = moment.tz(CENTRAL_TZ)
7574
const dateFrom = date.format('YYYY-MM-DD')
7675
const dateTo = date.add(1, 'month').format('YYYY-MM-DD')
7776

0 commit comments

Comments
 (0)