--- vcpx/bzr.py.orig +++ vcpx/bzr.py @@ -180,7 +180,7 @@ """ Commit the changeset. """ - from time import mktime + from time import mktime, gmtime from binascii import hexlify from re import search from bzrlib.osutils import compact_date, rand_bytes @@ -196,7 +196,12 @@ else: self.log.info('Committing...') logmessage = "Empty changelog" - timestamp = int(mktime(date.timetuple())) + + t_l = int(mktime(date.timetuple())) + t_u = int(mktime(date.utctimetuple())) + + timezone = t_u - mktime(gmtime(t_l)) + timestamp = t_l + timezone # Guess sane email address email = search("<(.*@.*)>", author) @@ -216,7 +221,7 @@ self._working_tree.commit(logmessage, committer=author, specific_files=entries, rev_id=revision_id, verbose=self.repository.projectref().verbose, - timestamp=timestamp) + timestamp=timestamp, timezone=timezone) def _removePathnames(self, names): """