! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Support "Today/Yesterday" as custom date format option
Status:
RESOLVED: MOVED

Comments

Description Phil4000n 2020-04-04 07:36:28 CEST
In Thunar 1.8.14
Under Edition>Preferences
Tab Display
In date format there is 
"Today" which is d-m-y

Under https://docs.xfce.org/xfce/thunar/4.14/preferences
"Date - Format
Choose your preferred date display format. You can as well provide a custom date string."

First the reference manual, lacks information, I didn't test all options of https://thdoan.github.io/strftime/ but
%a
%b
%j
are working with expected behaviour as described with https://thdoan.github.io/strftime/

However, I do NOT how to get "Today" feature in a format as Y-m-d, instead of d-m-y

Therefore:
1/ request the addition of  https://thdoan.github.io/strftime/  in the manual https://docs.xfce.org/xfce/thunar/4.14/preferences
2/ request new option or description in manual to perform "Today" feature in a format as Y-m-d

Thanks
Comment 1 alexxcons editbugs 2020-04-05 00:20:07 CEST
> First the reference manual, lacks information
Here what the tooltip of thunar-master has:
  gtk_widget_set_tooltip_text (entry, _("Custom date format to apply.\n\n"
                                        "The most common specifiers are:\n"
                                        "%d day of month\n"
                                        "%m month\n"
                                        "%Y year including century\n"
                                        "%H hour\n"
                                        "%M minute\n"
                                        "%S second\n\n"
                                        "For a complete list, check the man pages of 'strftime'"));

... the complete list of  'strftime' is a bit long for a tooltip
I just added the stuff from the tooltip as well to https://docs.xfce.org/xfce/thunar/4.14/preferences#display_preferences

> 2/ request new option or description in manual to perform "Today" feature in a format as Y-m-d
Not sure what you request here ... a option to show date as "Today" / "Yesterday" ?

Patches would be welcome ... check "thunar_util_humanize_file_time" and THUNAR_DATE_STYLE_SIMPLE / THUNAR_DATE_STYLE_SHORT for that .. though it might be much more work than you expect.
Comment 2 Phil4000n 2020-04-05 04:01:00 CEST
Created attachment 9670 
thunar custom date
Comment 3 Phil4000n 2020-04-05 04:02:56 CEST
Well, if you select the option "today",
Thunar display in the date column, dates in the format:d-m-y EXCEPT for today which is displayed as "today"
I wish the same behaviour, but instead of display the dat in the format d-m-y to have it Y-m-d

Should I try a custom date format as Y-m-d, then any file on today will not be display with "today" in the column.

See screenshots
Comment 4 Phil4000n 2020-04-05 04:03:28 CEST
Created attachment 9671 
Thunar today date format
Comment 5 Phil4000n 2020-04-05 04:08:22 CEST
Well, I omit to say that with option "today",
any files which is of yesterday or today, is displayed as "yesterday" or "today".
All I wish, is the exact same behaviour, only the display date format for any other date to be Y-m-d
Comment 6 alexxcons editbugs 2020-04-05 21:26:16 CEST
ok, got it, thanks :)  .... so far there is no option for that (and it would be some work to implement)

I dont have time for it.
Though if you are interested, patches would be very welcome.
Probably you only need to modify "thunar_util_humanize_file_time".
Comment 7 Git Bot editbugs 2020-05-26 23:49:48 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/xfce/thunar/-/issues/292.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #16631

Reported by:
Phil4000n
Reported on: 2020-04-04
Last modified on: 2020-05-26

People

Assignee:
Xfce Bug Triage
CC List:
1 user

Version

Version:
1.8.14

Attachments

thunar custom date (92.23 KB, image/png)
2020-04-05 04:01 CEST , Phil4000n
no flags
Thunar today date format (88.29 KB, image/png)
2020-04-05 04:03 CEST , Phil4000n
no flags

Additional information