Skip to content

Commit

Permalink
fix: git.log.CommitDate ( Fixes #309 )
Browse files Browse the repository at this point in the history
  • Loading branch information
James Brundage committed Sep 28, 2024
1 parent 9fc5828 commit 7a01097
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions Types/git.log/Alias.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
Notes = 'Note'
Trailers = 'Trailer'
Changes = 'Change'
Date = 'CommitDate'
}
7 changes: 7 additions & 0 deletions Types/git.log/get_CommitDate.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<#
.SYNOPSIS
Gets the date of a git log
.DESCRIPTION
Gets the commit date of a git log entry.
#>
return [datetime]::ParseExact($this.CommitDateString.Trim(), "ddd MMM d HH:mm:ss yyyy K", [cultureinfo]::InvariantCulture)

0 comments on commit 7a01097

Please sign in to comment.