diff --git a/src/lib/components/Options/ContractLookup.svelte b/src/lib/components/Options/ContractLookup.svelte index 5ea9cf86..2d7608ea 100644 --- a/src/lib/components/Options/ContractLookup.svelte +++ b/src/lib/components/Options/ContractLookup.svelte @@ -75,12 +75,13 @@ setDefault(); } - const formatDate = (dateString) => { + const formatDate = (dateString: string) => { const date = new Date(dateString); return date.toLocaleDateString("en-US", { month: "short", day: "2-digit", year: "numeric", + timeZone: "America/New_York", }); }; diff --git a/src/routes/options-calculator/+page.svelte b/src/routes/options-calculator/+page.svelte index cff90fe1..9c0a16c3 100644 --- a/src/routes/options-calculator/+page.svelte +++ b/src/routes/options-calculator/+page.svelte @@ -537,6 +537,7 @@ month: "short", day: "2-digit", year: "numeric", + timeZone: "America/New_York", }); };