Skip to content

Commit

Permalink
Merge pull request #481 from NASA-IMPACT/fix/story-date-format
Browse files Browse the repository at this point in the history
Fix date format
  • Loading branch information
dzole0311 authored Nov 6, 2024
2 parents c4ce1c3 + 5b6e806 commit 2566f91
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 23 deletions.
4 changes: 2 additions & 2 deletions datasets/CMIP-winter-median-pr.data.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ layers:
layerId: CMIP245-winter-median-pr
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
type: gradient
Expand Down Expand Up @@ -81,7 +81,7 @@ layers:
layerId: CMIP585-winter-median-pr
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
type: gradient
Expand Down
4 changes: 2 additions & 2 deletions datasets/CMIP-winter-median-ta.data.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ layers:
layerId: CMIP245-winter-median-ta
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
unit:
Expand Down Expand Up @@ -82,7 +82,7 @@ layers:
layerId: CMIP585-winter-median-ta
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
unit:
Expand Down
2 changes: 1 addition & 1 deletion datasets/FLDAS-soilmoisture-anomalies.data.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ layers:
layerId: SoilMoi00_10cm_tavg
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
unit:
Expand Down
2 changes: 1 addition & 1 deletion datasets/darnah-flood.data.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ layers:
layerId: darnah-flood
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
metadata:
source: HLS
Expand Down
18 changes: 9 additions & 9 deletions datasets/global-reanalysis-da.data.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ layers:
layerId: lis-global-da-evap
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
unit:
Expand Down Expand Up @@ -85,7 +85,7 @@ layers:
layerId: lis-global-da-gpp
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
unit:
Expand Down Expand Up @@ -126,7 +126,7 @@ layers:
layerId: lis-global-da-gws
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
unit:
Expand Down Expand Up @@ -167,7 +167,7 @@ layers:
layerId: lis-global-da-swe
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
unit:
Expand Down Expand Up @@ -209,7 +209,7 @@ layers:
layerId: lis-global-da-streamflow
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
unit:
Expand Down Expand Up @@ -250,7 +250,7 @@ layers:
layerId: lis-global-da-qs
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
unit:
Expand Down Expand Up @@ -291,7 +291,7 @@ layers:
layerId: lis-global-da-qsb
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
unit:
Expand Down Expand Up @@ -332,7 +332,7 @@ layers:
layerId: lis-global-da-tws
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
unit:
Expand Down Expand Up @@ -373,7 +373,7 @@ layers:
layerId: lis-global-da-totalprecip
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
unit:
Expand Down
6 changes: 3 additions & 3 deletions datasets/lahaina-fire.data.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ layers:
layerId: landsat-nighttime-thermal
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
type: gradient
Expand Down Expand Up @@ -79,7 +79,7 @@ layers:
layerId: hls-swir-falsecolor-composite
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
info:
source: NASA
Expand Down Expand Up @@ -110,7 +110,7 @@ layers:
layerId: hls-bais2-v2
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
Expand Down
4 changes: 2 additions & 2 deletions datasets/snow-projections-diff.data.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ layers:
layerId: snow-projections-diff-scenario-245
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
type: gradient
Expand Down Expand Up @@ -79,7 +79,7 @@ layers:
layerId: snow-projections-diff-scenario-585
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
type: gradient
Expand Down
4 changes: 2 additions & 2 deletions datasets/snow-projections-median.data.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ layers:
layerId: snow-projections-median-scenario-245
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
unit:
Expand Down Expand Up @@ -79,7 +79,7 @@ layers:
layerId: snow-projections-median-scenario-585
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
unit:
Expand Down
2 changes: 1 addition & 1 deletion datasets/twsanomaly.data.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ layers:
layerId: lis-tws-anomaly
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')} VS ${dateFns.format(compareDatetime, 'DD LLL yyyy')}`;
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')} VS ${dateFns.format(compareDatetime, 'dd LLL yyyy')}`;
}
legend:
type: gradient
Expand Down

0 comments on commit 2566f91

Please sign in to comment.