Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exa displays wrong date format on December 31 #620

Closed
j-tai opened this issue Jan 1, 2020 · 3 comments
Closed

exa displays wrong date format on December 31 #620

j-tai opened this issue Jan 1, 2020 · 3 comments

Comments

@j-tai
Copy link
Contributor

j-tai commented Jan 1, 2020

If the current date is December 31, <year>, exa will think that the current year is <year> + 1 for the purpose of displaying file modification times, so it may choose to use the "day and year" format instead of the "day and time" format, or vice versa.

To reproduce, set your system's current date to December 31, create a file, and run exa -l:

$ date
Tue Dec 31 18:17:20 PST 2019
$ echo hello > hello.txt
$ exa -l
.rw-r--r-- 6 jtai 31 Dec  2019 hello.txt
$ ls -l
total 4
-rw-r--r-- 1 jtai jtai 6 Dec 31 18:17 hello.txt

Notice that exa displayed the date as "31 Dec 2019", instead of the expected "31 Dec 18:17", even though Dec 31, 2019 is the current day.

@ariasuni
Copy link
Collaborator

Is this still happening? If not, I believe it’ll be fixed by #867.

@j-tai
Copy link
Contributor Author

j-tai commented Aug 1, 2021

Yes, this still happens on master, and it is indeed fixed by #867.

@ariasuni
Copy link
Collaborator

Closing this, since exa is unmaintained (see #1243), and this has (finally 🎉) fixed in the active fork eza!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants