We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36381a6 commit 1601672Copy full SHA for 1601672
lib/scm/parsers/git_styled_parser.rb
@@ -43,7 +43,7 @@ def self.internal_parse(io, opts)
43
e.author_name = $1
44
elsif line =~ /^Date: (.*)$/
45
# MUST be RFC2822 format to parse properly, else defaults to epoch time
46
- e.author_date = parse_commit_date($1)
+ e.author_date = parse_date($1)
47
elsif line == "__BEGIN_COMMENT__"
48
state = :message
49
elsif line =~ /^AuthorEmail: (.+)$/
@@ -81,7 +81,7 @@ def self.internal_parse(io, opts)
81
yield e if e
82
end
83
84
- def self.parse_commit_date(date)
+ def self.parse_date(date)
85
t = Time.rfc2822(date) rescue Time.at(0)
86
t.utc
87
0 commit comments