If you've already made a local commit, but want to backdate it (change author and committer time), you can do it with git commit --amend using environment variables.
-
Set the desired date and timezone:
export GIT_AUTHOR_DATE="2025-05-20T08:30:00+0300"