Skip to content

Conversation

@jiangxin
Copy link

When creating git commit, git read environment variables, such as GIT_AUTHOR_DATE
and GIT_COMMITTER_DATE for author and committer time. But the supported datetime formats are not work well for this package:

  1. Raw git commit time, such as: 1398048977 -0700
  2. Default git commit time, such as: Sun Apr 20 19:56:17 2014 -0700

Signed-off-by: Jiang Xin <zhiyou.jx@alibaba-inc.com>
Support git default log date like: "Thu Apr 7 15:13:13 2005 -0700"

Signed-off-by: Jiang Xin <zhiyou.jx@alibaba-inc.com>
klondikedragon added a commit to itlightning/dateparse that referenced this pull request Dec 16, 2023
Adapt commit araddon@99d9682 from araddon#92 by https://github.com/jiangxin (merge timeWsYearOffset case and validate format)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant