Pārlūkot izejas kodu

Fixes #1601: normalizes time example to local time

main
Eric Amodio pirms 2 gadiem
vecāks
revīzija
473ecfe558
2 mainītis faili ar 5 papildinājumiem un 1 dzēšanām
  1. +1
    -0
      CHANGELOG.md
  2. +4
    -1
      src/webviews/apps/shared/appWithConfigBase.ts

+ 1
- 0
CHANGELOG.md Parādīt failu

@ -28,6 +28,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
- Fixes [#1572](https://github.com/gitkraken/vscode-gitlens/issues/1572) - Forced regular expression search in changes
- Fixes [#1473](https://github.com/gitkraken/vscode-gitlens/issues/1473) - Support VSCodium in interactive rebase editor
- Fixes [#1699](https://github.com/gitkraken/vscode-gitlens/issues/1699) - Exception has occurred: RangeError [ERR_OUT_OF_RANGE]
- Fixes [#1601](https://github.com/gitkraken/vscode-gitlens/issues/1601) - Add a better time sample in "Dates & Times" setting
- Fixes performance issue with the rich hover on the status bar blame
- Fixes cross repository branch switching via the _Git Command Palette_
- Fixes an issue with TOC entries in the VS Code settings editor

+ 4
- 1
src/webviews/apps/shared/appWithConfigBase.ts Parādīt failu

@ -13,7 +13,10 @@ import { getDateFormatter } from '../shared/date';
import { App } from './appBase';
import { DOM } from './dom';
const dateFormatter = getDateFormatter(new Date('Wed Jul 25 2018 19:18:00 GMT-0400'));
const offset = (new Date().getTimezoneOffset() / 60) * 100;
const dateFormatter = getDateFormatter(
new Date(`Wed Jul 25 2018 19:18:00 GMT${offset >= 0 ? '-' : '+'}${String(Math.abs(offset)).padStart(4, '0')}`),
);
let ipcSequence = 0;
function nextIpcId() {

Notiek ielāde…
Atcelt
Saglabāt