]> source.dussan.org Git - jgit.git/commit
PersonIdent: Preserve the timezone when copying with new time 08/1204408/1
authorIvan Frade <ifrade@google.com>
Wed, 20 Nov 2024 21:09:24 +0000 (13:09 -0800)
committerIvan Frade <ifrade@google.com>
Wed, 20 Nov 2024 21:09:24 +0000 (13:09 -0800)
commitee8a4149135284e2319cb5c64de8387a3334bcdd
tree7a3e09c487afb948963ae119279fc0011eeddaf4
parentf072d2ec7b1fe21d403c93f8c3dac7fc9e9e526a
PersonIdent: Preserve the timezone when copying with new time

The PersonIdent(PersonIdent,Date) constructor must create a copy with
the same author/email/timezone but different time.  When we changed
the implementation to the new Instant/ZoneId version, we forgot to
pass the timezone. This made fail some tests downstream.

Pass the timezone when constructing the copy.

Change-Id: Iaa979e6dbaa3c55d4c4d2040068ab8b03163cd4e
org.eclipse.jgit/src/org/eclipse/jgit/lib/PersonIdent.java