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

wrong file date on leap year/day #101

Closed
khambrecht opened this issue Feb 29, 2016 · 5 comments
Closed

wrong file date on leap year/day #101

khambrecht opened this issue Feb 29, 2016 · 5 comments
Assignees
Labels
errors › invalid output

Comments

@khambrecht
Copy link

khambrecht commented Feb 29, 2016

eax shows wrong file date on leap year/day (e.g. 29th feb 2016):

ls output:
$ ls -la file_created_on_29th_Feb_2016.txt
-rw-r--r-- 1 khambrecht users 0 29. Feb 11:13 file_created_on_29th_Feb_2016.txt

exa output on same file:
$ exa -la file_created_on_29th_Feb_2016.txt
.rw-r--r-- 0 khambrecht 1 Mar 11:13 file_created_on_29th_Feb_2016.txt

@ogham ogham self-assigned this Feb 29, 2016
@ogham
Copy link
Owner

ogham commented Feb 29, 2016

Oh man. I hate date-time.

@ogham
Copy link
Owner

ogham commented Jan 19, 2020

This should be fixed when exa updates to the version of rust-datetime that has the fix.

@khambrecht
Copy link
Author

khambrecht commented Feb 4, 2020

any chance to get this in place soon? Next Feb 29th is comming closer and closer ... ;-)

@JoshMock
Copy link

JoshMock commented Feb 29, 2020

Still happening as of today, leap day 2020. 🙂

ls works:

$ ls -la resources/public
total 448
drwxr-xr-x  6 joshmock  staff     192 Feb 20 13:51 .
drwxr-xr-x  4 joshmock  staff     128 Feb 29 09:41 ..
-rw-r--r--  1 joshmock  staff    4286 Feb 29 09:54 favicon.ico
-rw-r--r--  1 joshmock  staff    4145 Feb 29 09:54 index.html
-rw-r--r--  1 joshmock  staff   80350 Feb 29 09:54 main.css
-rw-r--r--  1 joshmock  staff  130601 Feb 29 09:54 main.js

exa is wrong:

$ exa --long --header --all resources/public
Permissions Size User     Date Modified Name
.rw-r--r--  4.3k joshmock  1 Mar  9:54  favicon.ico
.rw-r--r--  4.1k joshmock  1 Mar  9:54  index.html
.rw-r--r--   80k joshmock  1 Mar  9:54  main.css
.rw-r--r--  130k joshmock  1 Mar  9:54  main.js

@ariasuni
Copy link
Collaborator

ariasuni commented Jan 13, 2021

This was fixed by updating the datetime crate in da1ac51, there just hasn’t been a new release made since then.

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

No branches or pull requests

4 participants