Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to specify timestamp format for "git-annotating" file

In intellij IDEA, when you have GIT VCS, you can do: -> Git -> Annotate, which yields in-gui variant of git blame.

But for some reason the produced timestamps does not respect git settings for some reason (well at least what git blame produces is different), "right-clicking annotation, ->options-> show commit timestamp" does nothing, and I did not find possibility to specify format of this.

Motivation: The default format misses time, and uses US date formatting, which is "for its stupid famous order", sorry, I meant famous for its stupid order, and it always takes me 10x the time to figure out, what date is it.

Is there possibility to have there iso timestamp?

like image 445
Martin Mucha Avatar asked Apr 19 '26 08:04

Martin Mucha


1 Answers

  • Go to Preferences | Appearance & Behavior | System Settings | Date Formats
  • enable the Override system date and time format checkbox.
  • Enter something like yyyy MM dd kk:mm in the Date Format text field.

This will show your preferred time format (including time stamp if you want) in the Git Blame Annotations.

Related Intellij Documentation : https://www.jetbrains.com/help/idea/date-formats-settings.html

like image 118
Bas Leijdekkers Avatar answered Apr 27 '26 18:04

Bas Leijdekkers