Skip to content

Commit

Permalink
fix: override SLSTR1 dateformat function
Browse files Browse the repository at this point in the history
  • Loading branch information
lubojr committed Sep 24, 2024
1 parent 05d2c7f commit ffc20e9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/src/config/trilateral.js
Original file line number Diff line number Diff line change
Expand Up @@ -902,6 +902,16 @@ export const globalIndicators = [
},
},
},
{
properties: {
indicatorObject: {
indicator: 'SLSTR1',
display: {
dateFormatFunction: (date) => `${DateTime.fromISO(date).toFormat('yyyy-MM-dd')}/${DateTime.fromISO(date).plus({ days: 1 }).set({ hour: 23 }).toFormat('yyyy-MM-dd')}`

Check failure on line 910 in app/src/config/trilateral.js

View workflow job for this annotation

GitHub Actions / deploy

Missing trailing comma
},
},
},
},
{
properties: {
indicatorObject: {
Expand Down

0 comments on commit ffc20e9

Please sign in to comment.