From 5b6e8068d94c35cb6c64bf177deb88f0eee1768e Mon Sep 17 00:00:00 2001 From: j08lue Date: Wed, 6 Nov 2024 10:21:49 +0100 Subject: [PATCH] Fix date format --- datasets/CMIP-winter-median-pr.data.mdx | 4 ++-- datasets/CMIP-winter-median-ta.data.mdx | 4 ++-- datasets/FLDAS-soilmoisture-anomalies.data.mdx | 2 +- datasets/darnah-flood.data.mdx | 2 +- datasets/global-reanalysis-da.data.mdx | 18 +++++++++--------- datasets/lahaina-fire.data.mdx | 6 +++--- datasets/snow-projections-diff.data.mdx | 4 ++-- datasets/snow-projections-median.data.mdx | 4 ++-- datasets/twsanomaly.data.mdx | 2 +- 9 files changed, 23 insertions(+), 23 deletions(-) diff --git a/datasets/CMIP-winter-median-pr.data.mdx b/datasets/CMIP-winter-median-pr.data.mdx index 3b684c201..f8d6f20e3 100644 --- a/datasets/CMIP-winter-median-pr.data.mdx +++ b/datasets/CMIP-winter-median-pr.data.mdx @@ -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 @@ -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 diff --git a/datasets/CMIP-winter-median-ta.data.mdx b/datasets/CMIP-winter-median-ta.data.mdx index c4b1f8104..d97feb16f 100644 --- a/datasets/CMIP-winter-median-ta.data.mdx +++ b/datasets/CMIP-winter-median-ta.data.mdx @@ -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: @@ -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: diff --git a/datasets/FLDAS-soilmoisture-anomalies.data.mdx b/datasets/FLDAS-soilmoisture-anomalies.data.mdx index 6d35dc63f..eadf88172 100644 --- a/datasets/FLDAS-soilmoisture-anomalies.data.mdx +++ b/datasets/FLDAS-soilmoisture-anomalies.data.mdx @@ -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: diff --git a/datasets/darnah-flood.data.mdx b/datasets/darnah-flood.data.mdx index 5febdb17e..93215e73c 100644 --- a/datasets/darnah-flood.data.mdx +++ b/datasets/darnah-flood.data.mdx @@ -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 diff --git a/datasets/global-reanalysis-da.data.mdx b/datasets/global-reanalysis-da.data.mdx index e900d122c..abf9d4be3 100644 --- a/datasets/global-reanalysis-da.data.mdx +++ b/datasets/global-reanalysis-da.data.mdx @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: diff --git a/datasets/lahaina-fire.data.mdx b/datasets/lahaina-fire.data.mdx index da1945f3b..1a4881d10 100644 --- a/datasets/lahaina-fire.data.mdx +++ b/datasets/lahaina-fire.data.mdx @@ -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 @@ -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 @@ -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: diff --git a/datasets/snow-projections-diff.data.mdx b/datasets/snow-projections-diff.data.mdx index 046e38d8e..96212ed68 100644 --- a/datasets/snow-projections-diff.data.mdx +++ b/datasets/snow-projections-diff.data.mdx @@ -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 @@ -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 diff --git a/datasets/snow-projections-median.data.mdx b/datasets/snow-projections-median.data.mdx index 9f6bec08d..9a1484293 100644 --- a/datasets/snow-projections-median.data.mdx +++ b/datasets/snow-projections-median.data.mdx @@ -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: @@ -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: diff --git a/datasets/twsanomaly.data.mdx b/datasets/twsanomaly.data.mdx index 1f7b0904d..6e0e68969 100644 --- a/datasets/twsanomaly.data.mdx +++ b/datasets/twsanomaly.data.mdx @@ -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