Make all list views display ISO 8601 dates and times

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
lukescammell
Posts: 744
Joined: 28 Jul 2006 13:15
Location: Kent, UK
Contact:

Make all list views display ISO 8601 dates and times

Post by lukescammell »

I've had a look around, but can't seem to find a way to globally change how dates and times are displayed in all of my listview tabs (current and future), but without changing any of the other listview settings for any of the current tabs. Does anyone know how to do this?

Basically I want to be able to make all list views display ISO 8601 dates and times but without affecting anything else.

Thanks.
Used to update to the latest beta every day. Now I have children instead…
Windows 10 Pro x64 (everywhere except phone…)

bdeshi
Posts: 4249
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612 / Dhaka
Contact:

Re: Make all list views display ISO 8601 dates and times

Post by bdeshi »

just to confirm, 2014-12-02 15:29:23Z this is how XY displays ISO 8601 dates.


I suggest editing the pane.ini files.
Set all Date and Time keys under each [List*] section to

Code: Select all

Date=8
Time=4
alternatively, run this script to do that automatically:

Code: Select all

 $paneinis = "<xypane1>\pane.ini|<xypane1>\t\pane.ini|<xypane2>\pane.ini|<xypane2>\t\pane.ini", r;
 $sections = "ListBrowse|ListFind|ListDrives|ListNetwork|ListRecycler|ListBrowsePD|ListFindPD|ListDrivesPD";
 foreach ($ini, $paneinis){
   if (exists($ini)!=1){new($ini, file); wait 4;}
   foreach ($section, $sections){
     setkey 8, 'Date', $section, $ini;
     setkey 4, 'Time', $section, $ini;
   }
 }
 $tabset1 = <xypane1>;
 $tabset2 = <xypane2>;
 //fix: previously temp loaded 1 and 2, but they could be current tabsets
 $tabsets = <crlf>.listfolder(getpathcomponent(<xypane1>,path),,6,<crlf>).<crlf>;
 $c=0; while(strpos(<crlf>.$c.<crlf>,$tabsets) != -1){$c++}
 $tmp_tabset = $c;
 tabset(load, $tmp_tabset, 1);
 tabset(load, $tabset1, 1);
 tabset(load, $tmp_tabset, 2);
 tabset(load, $tabset2, 2);
(when creating new tabsets, ensure their pane.ini also has those values set)

ed. fix: previously temp loaded 1 and 2, but they could be current tabsets
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

lukescammell
Posts: 744
Joined: 28 Jul 2006 13:15
Location: Kent, UK
Contact:

Re: Make all list views display ISO 8601 dates and times

Post by lukescammell »

Thanks for the info Sammay.

Unfortunately the script didn't do the trick for me (I have a stupid number of tabs) but a good old bit of find and replace across all files in the /Data/Panes directory seems to have done the trick.
Used to update to the latest beta every day. Now I have children instead…
Windows 10 Pro x64 (everywhere except phone…)

bdeshi
Posts: 4249
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612 / Dhaka
Contact:

Re: Make all list views display ISO 8601 dates and times

Post by bdeshi »

lukescammell wrote:Thanks for the info Sammay.

Unfortunately the script didn't do the trick for me (I have a stupid number of tabs)
Huh, sorry. glad it worked out well anyways.
BTW, the options you changed are also available in GUI in the Date columns' context menu. But a quick search-replace is way faster than switching to each tab and clicking thru menus. :wink:
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

admin
Site Admin
Posts: 60566
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Make all list views display ISO 8601 dates and times

Post by admin »

SammaySarkar wrote:
lukescammell wrote:Thanks for the info Sammay.

Unfortunately the script didn't do the trick for me (I have a stupid number of tabs)
Huh, sorry. glad it worked out well anyways.
BTW, the options you changed are also available in GUI in the Date columns' context menu. But a quick search-replace is way faster than switching to each tab and clicking thru menus. :wink:
:? Hm, this setting is global (well, per list mode: Browse, Find, Drives etc...). You just need to change it once in any tab and it is applied to all tabs.

bdeshi
Posts: 4249
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612 / Dhaka
Contact:

Re: Make all list views display ISO 8601 dates and times

Post by bdeshi »

admin wrote:
SammaySarkar wrote:
lukescammell wrote:Thanks for the info Sammay.

Unfortunately the script didn't do the trick for me (I have a stupid number of tabs)
Huh, sorry. glad it worked out well anyways.
BTW, the options you changed are also available in GUI in the Date columns' context menu. But a quick search-replace is way faster than switching to each tab and clicking thru menus. :wink:
:? Hm, this setting is global (well, per list mode: Browse, Find, Drives etc...). You just need to change it once in any tab and it is applied to all tabs.
Hm, I have "Apply list styles globally" unchecked, and only saw the changes update in current tab. Confusion.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

admin
Site Admin
Posts: 60566
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Make all list views display ISO 8601 dates and times

Post by admin »

Correction: It's per pane and mode.

bdeshi
Posts: 4249
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612 / Dhaka
Contact:

Re: Make all list views display ISO 8601 dates and times

Post by bdeshi »

Right, realized that just now. XY's tab/pane/mode/... style settings is not my forte... :cry:
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

admin
Site Admin
Posts: 60566
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Make all list views display ISO 8601 dates and times

Post by admin »

They are a bit complex because they mirror something complex: average human behavior and expectation patterns. The ultimate goal here is to be as little surprising as possible to as many users as possible.

lukescammell
Posts: 744
Joined: 28 Jul 2006 13:15
Location: Kent, UK
Contact:

Re: Make all list views display ISO 8601 dates and times

Post by lukescammell »

GUI is hard :)

Just glad the settings for most things in XY or text formatted, so you can edit them directly if you need to.
Used to update to the latest beta every day. Now I have children instead…
Windows 10 Pro x64 (everywhere except phone…)

Post Reply