Linux: Change date format displayed in browser

Ideas for improvements and requests for new features in XnView MP

Moderators: helmut, XnTriq, xnview

Post Reply
User avatar
pangwolin
Posts: 60
Joined: Sun Sep 25, 2016 7:53 pm

Linux: Change date format displayed in browser

Post by pangwolin »

It would be really nice to be able to tweak the date / time format in file listing (on Linux, don't know about the Windows side).

Currently, the format is too long and oddly shaped, with PM/AM time and out of order date:
* currently: MONTH/DAY/YEAR time in 12 hours format plus timezone region (YUCK!)
* a better way: YEAR/MONTH/DAY time in 24 hours format (YES!)
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: Change default date format in file listings

Post by helmut »

FAIK, by default XnView uses the date/time format of Windows or your OS. To change this, XnView MP allows for using date format variables. E.g. you can specify "{Modified Date [Ymd HMS]}".

In the "File listing" dialog, when pressing ">" you have the top most entry "Date format variables" which helps to find the correct variables.

Related topics:
- Using date variable in 'Add Text'
- Display time with seconds - hh:mm:ss
User avatar
pangwolin
Posts: 60
Joined: Sun Sep 25, 2016 7:53 pm

Re: Change default date format in file listings

Post by pangwolin »

I'm not sure if we are talking about the same thing.

I see no option anywhere to change the date format displayed in the file browser.
In the "File list" dialog, there is no setting about it.

There is nothing in the xnview.ini either. I suspect this is hard coded.

For comparison, the "default" date format from the "date" GNU program is something like this:

Code: Select all

user@linux> date
Mon Dec  5 00:44:26 CET 2016
user@linux> date +%Y-%m-%d\ %H:%M:%S
2016-12-05 00:45:51
Would be nice to have flexibility in changing this format, even if it's only by going in the xnview.ini file...

Image
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: Change default date format in file listings

Post by helmut »

Oh, right: You were talking of the way files are displayed in the browser while I was talking about the file listing (Create > File listing). That's too pair of shoes. For all I know there is no setting to change the date format in the browser apart from changing the file format of Windows.
User avatar
pangwolin
Posts: 60
Joined: Sun Sep 25, 2016 7:53 pm

Re: Change default date format in file listings

Post by pangwolin »

Bu... but I'm not using Windows! :(

And as I said, it doesn't depend on how the operating system displays date because it's certainly hard coded in xnview somehow.
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: Change default date format in file listings

Post by helmut »

pangwolin wrote:Bu... but I'm not using Windows! :(
Ouch, sorry for that. I didn't read your original post carefully.
pangwolin wrote:And as I said, it doesn't depend on how the operating system displays date because it's certainly hard coded in xnview somehow.
I doubt that it's hardcoded on Linux but it might be. Pierre will know...
User avatar
xnview
Author of XnView
Posts: 46255
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Linux: Change date format displayed in browser

Post by xnview »

I think that QT Api uses system default.
Pierre.
Post Reply