From 397f718d99e4ec754a0316d801ad1991dcdb6c48 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Wed, 2 Mar 2022 02:54:41 -0500 Subject: [PATCH] Fxies #1865 out of range date option --- CHANGELOG.md | 1 + src/system/date.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f739cb..551e894 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p ### Fixed +- Fixes [#1865](https://github.com/gitkraken/vscode-gitlens/issues/1865) - Value shortOffset out of range for Intl.DateTimeFormat options property timeZoneName - Fixes [#1742](https://github.com/gitkraken/vscode-gitlens/issues/1742) - New file lines keep jumping down - Fixes [#1846](https://github.com/gitkraken/vscode-gitlens/issues/1846) - Restoring (checkout) a deleted file from a commit doesn't work - Fixes [#1844](https://github.com/gitkraken/vscode-gitlens/issues/1844) - Autolinked issues aren't properly paged when there are too many commits diff --git a/src/system/date.ts b/src/system/date.ts index d7da057..d477980 100644 --- a/src/system/date.ts +++ b/src/system/date.ts @@ -265,7 +265,7 @@ function getDateTimeFormatOptionsFromFormatString( options.hour12 = true; break; case 'timeZoneName': - options.timeZoneName = (value.length === 2 ? 'longOffset' : 'shortOffset') as any; + options.timeZoneName = value.length === 2 ? 'long' : 'short'; break; } }