mate-desktop / caja

Caja, the file manager for the MATE desktop
https://mate-desktop.org/
Other
265 stars 143 forks source link

caja-file: fix future informal date bug #1711

Closed basicmaster closed 1 year ago

basicmaster commented 1 year ago

If informal date format is used, for future dates the today time format has been used by mistake, instead of the general time format.

basicmaster commented 1 year ago

Testing today (2023-04-15) with a file having a modification date of 2023-04-21:

Caja without fix: grafik

Caja with fix: grafik

zhuyaliang commented 1 year ago

I cannot reproduce this problem,How should I reproduce it 2023-05-08 17-30-36屏幕截图

basicmaster commented 1 year ago

You need to set the date format to "informal date" (see https://github.com/mate-desktop/caja/pull/1710#issuecomment-1517288663).

zhuyaliang commented 1 year ago

Do I use this merge for testing ? Is this PR for repairing 1710

basicmaster commented 1 year ago

This fix affects a similar part of the code as #1710 does: the informal date format. However this is an independent bugfix and not a fix or improvement for #1710; it works separately from #1710.

raveit65 commented 1 year ago

Confirmed, a file created with touch -t 05151130 test_1 is shown as from today in caja. Bildschirmfoto zu 2023-05-10 11-02-17 (heute=today)

raveit65 commented 1 year ago

With the fix same file is shown with the correct date in caja. Bildschirmfoto zu 2023-05-10 11-24-07