---
title: "Discussion on \"How to change a commit timestamp\" | Hashnode"
description: "Discussion on \"How to change a commit timestamp\". You may need to change the datetime of a commit in some situations. For example, some countries use daylight saving time period and because of it, some commits can have the wrong timestamp.\ngit commit --amend --date \"Thu Feb 15 22:37:31 2018 +0300\"\n\n..."
url: "https://hashnode.com/posts/how-to-change-a-commit-timestamp/6390d06b120246e215ff9fb1"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to change a commit timestamp](https://www.erdaltaskesen.com/how-to-change-a-commit-timestamp?utm_source=hashnode&utm_medium=feed)

You may need to change the datetime of a commit in some situations. For example, some countries use daylight saving time period and because of it, some commits can have the wrong timestamp. git commit --amend --date "Thu Feb 15 22:37:31 2018 +0300" ...

Sep 20, 2018 · 1 min read · erdaltaskesen.com  
Updated Dec 10, 2022  
Read the article

-   [#git](https://hashnode.com/tag/git)
-   [#git-commit](https://hashnode.com/tag/git-commit)
-   [#timestamp](https://hashnode.com/tag/timestamp)

## Written by

[Erdal TAŞKESEN](https://hashnode.com/@erdaltsksn)

@erdaltsksn · Earth

  
[View profile](https://hashnode.com/@erdaltsksn)

Self-Taught Software Engineer, Day Trader, Investor, Entrepreneur, and Teacher

Hey, y’all 🖖🏽 I am a passionate self-taught developer, open-source advocate, and tech enthusiast with a hands-on approach to problem-solving and an unending thirst for knowledge. Anything and everything classified as technology fascinate me.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
