Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for git date format #92

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

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.

None yet

1 participant