Intellij and Pycharm annotate showing a fixed wrong date

Answered

I am facing a quite bizarre situation regarding Intellij IDEA and Pycharm annotate functionality.

Late last year I decided to install different JDKs on my MacOS Mojave (version 10.14.6) for development purposes. It seemingly messed up things quite bit, so I spent some time trying to "undo" (i.e., removing) the JDKs and jEnv. I am able to start and use IntelliJ IDEA and PyCharm, but both programs now show a wrong fixed date (10/01/2019) for all the lines when I click on "Annotate" option of every versioned file no matter how old or new is the line. If I use git blame on the command line I see the correct dates of each file's lines. Downloading and installing the newest version of Intellij IDEA didn't help to solve the issue. Please, anyone could help me restore the default behaviour?

The default java version is below:
openjdk version "11.0.1" 2018-10-16
OpenJDK Runtime Environment 18.9 (build 11.0.1+13)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.1+13, mixed mode)

The git version is:
git version 2.21.1 (Apple Git-122.3)

The Intellij IDEA and PyCharm versions are:

IntelliJ IDEA 2020.3.1 (Community Edition)
Build #IC-203.6682.168, built on December 29, 2020
Runtime version: 11.0.9.1+11-b1145.63 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 10.14.6
GC: ParNew, ConcurrentMarkSweep
Memory: 990M
Cores: 4
Registry: editor.distraction.free.mode=true
Non-Bundled Plugins: DBN

PyCharm 2019.3.4 (Community Edition)
Build #PC-193.6911.25, built on March 18, 2020
Runtime version: 11.0.6+8-b520.43 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.14.6
GC: ParNew, ConcurrentMarkSweep
Memory: 990M
Cores: 4
Registry:
Non-Bundled Plugins: com.alayouni.ansiHighlight, com.intellij.ideolog

0
2 comments

Hello @...

Could you please check Preferences | Appearance & Behavior | System Settings | Date Formats and see whether you have "override system date and time format" enabled?
Also could you please clarify whether you had a chance to re-install and IDE that has such behavior, would it be possible to do so?
Could you please check commuter and author date for those commits in the log?

0
Avatar
Permanently deleted user

Hi Ruslan,

I have checked Preferences | Appearance & Behavior | System Settings | Date Formats for both Intellij and PyCharm. Here's what I have found:

1) PyCharm: the VCS Annotate field was empty, so I filled with dd/MM/YYYY. Now it shows the current date;
2) Intellij: Override system date and time format was unchecked so I checked. 

 

Now both show the correct Annotate date. :D I checked the commit author and date in the logs and they are correct now. THANK YOU!

PS: Answering your other questions: I had re-installed Intellij, but it didn't help back then. Also, I have no idea why I "lost" this setup. 

0

Please sign in to leave a comment.