Browse Source

Fixes #266 - I'm an idiot and used the wrong date format

main
Eric Amodio 7 years ago
parent
commit
c42cdd5459
4 changed files with 7 additions and 3 deletions
  1. +4
    -0
      CHANGELOG.md
  2. +1
    -1
      src/annotations/annotations.ts
  3. +1
    -1
      src/git/formatters/formatter.ts
  4. +1
    -1
      src/git/models/commit.ts

+ 4
- 0
CHANGELOG.md View File

@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased]
### Fixed
- Fixes [#266](https://github.com/eamodio/vscode-gitlens/issues/266) - Wrong time in Popup
## [7.5.9] - 2018-01-30 ## [7.5.9] - 2018-01-30
### Fixed ### Fixed
- Fixes [#265](https://github.com/eamodio/vscode-gitlens/issues/265) - Delete line pushes screen to the right (even if word wrap is on) - Fixes [#265](https://github.com/eamodio/vscode-gitlens/issues/265) - Delete line pushes screen to the right (even if word wrap is on)

+ 1
- 1
src/annotations/annotations.ts View File

@ -66,7 +66,7 @@ export class Annotations {
static getHoverMessage(commit: GitCommit, dateFormat: string | null, hasRemote: boolean, annotationType?: FileAnnotationType): MarkdownString { static getHoverMessage(commit: GitCommit, dateFormat: string | null, hasRemote: boolean, annotationType?: FileAnnotationType): MarkdownString {
if (dateFormat === null) { if (dateFormat === null) {
dateFormat = 'MMMM Do, YYYY h:MMa';
dateFormat = 'MMMM Do, YYYY h:mma';
} }
let message = ''; let message = '';

+ 1
- 1
src/git/formatters/formatter.ts View File

@ -27,7 +27,7 @@ export abstract class Formatter
} }
if (options.dateFormat == null) { if (options.dateFormat == null) {
options.dateFormat = 'MMMM Do, YYYY h:MMa';
options.dateFormat = 'MMMM Do, YYYY h:mma';
} }
if (options.tokenOptions == null) { if (options.tokenOptions == null) {

+ 1
- 1
src/git/models/commit.ts View File

@ -151,7 +151,7 @@ export abstract class GitCommit {
formatDate(format?: string | null) { formatDate(format?: string | null) {
if (format == null) { if (format == null) {
format = 'MMMM Do, YYYY h:MMa';
format = 'MMMM Do, YYYY h:mma';
} }
if (this._dateFormatter === undefined) { if (this._dateFormatter === undefined) {

Loading…
Cancel
Save