Page 1 of 1

Make all list views display ISO 8601 dates and times

Posted: 06 Mar 2015 14:44
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.

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

Posted: 06 Mar 2015 15:33
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

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

Posted: 09 Mar 2015 13:52
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.

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

Posted: 09 Mar 2015 14:15
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:

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

Posted: 09 Mar 2015 14:25
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.

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

Posted: 09 Mar 2015 15:23
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.

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

Posted: 09 Mar 2015 15:41
by admin
Correction: It's per pane and mode.

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

Posted: 09 Mar 2015 15:45
by bdeshi
Right, realized that just now. XY's tab/pane/mode/... style settings is not my forte... :cry:

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

Posted: 09 Mar 2015 15:56
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.

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

Posted: 09 Mar 2015 18:00
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.