Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix date format #481

Merged
merged 1 commit into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading