Repository navigation
fix: use committer timezone for nisse.jgit.date - #193
Conversation
formatCommitDate() was using the committer's timestamp (getCommitTime()) but the author's timezone (getAuthorIdent().getTimeZone()), creating an accidental hybrid. For rebased or cherry-picked commits where author and committer differ, this produced incorrect date output. Use getCommitterIdent().getTimeZone() so both timestamp and timezone consistently come from the committer. This also makes the iso8601-offset format (%cI) an exact match for git's committer date, which is important for projects using nisse.properties with export-subst for reproducible builds. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe JGit property source now formats commit dates using the committer’s timezone instead of the author’s timezone. ChangesCommit date formatting
Estimated code review effort: 1 (Trivial) | ~2 minutes Merge Risk: ⚪ Minimal · up to This localized change aligns the formatted timezone with the committer timestamp and is merge-ready after normal checks; no actionable merge-blocking risk remains. Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
formatCommitDate()to use committer timezone (getCommitterIdent().getTimeZone()) instead of author timezone (getAuthorIdent().getTimeZone())getCommitTime(), so the timezone should also come from the committer for consistencyiso8601-offsetformat an exact match for git's%cI(committer date ISO 8601)Test plan
./mvnw clean install -Bpasses (all modules including integration tests and Gradle plugin)🤖 Generated with Claude Code
Summary by CodeRabbit