wrong date with drag and drop
wrong date with drag and drop
Hello
since the last update, any time in drag and drop a file, the file date (date modified is very wrong. See attached screenshot
The first file was dragged and dropped from an Outlook attachment
This only happens when the drop is made in the XYplorer window (see new example screenshot 2)
when the same file is dropped in the same directory (downloads) but in Windows Explorer window, all is fine (see screenshot 3)
As this is very unpleasant, please let me know how to
1. avoid this from happening again
2. correct all the files that have crazy dates
thank you
Best regards
Raphael
since the last update, any time in drag and drop a file, the file date (date modified is very wrong. See attached screenshot
The first file was dragged and dropped from an Outlook attachment
This only happens when the drop is made in the XYplorer window (see new example screenshot 2)
when the same file is dropped in the same directory (downloads) but in Windows Explorer window, all is fine (see screenshot 3)
As this is very unpleasant, please let me know how to
1. avoid this from happening again
2. correct all the files that have crazy dates
thank you
Best regards
Raphael
- Attachments
-
- dropped in WIndows explorer window
- screenshot 3 XYplorer.jpg (96.66 KiB) Viewed 3089 times
-
- dropped in XYplorer window
- screenshot 2 XYplorer.jpg (77.39 KiB) Viewed 3089 times
-
- see modified date of the first file that has been dragged and droped
- screenshot XYplorer.jpg (96.79 KiB) Viewed 3092 times
Re: wrong date with drag and drop
How to avoid that? Mh, don't know.
How to fix those dates? Scripting...
It finds all files recursively in the current folder of the list pane
and if their date is in the future compared to now(), it will reset their modified date to the time when the script was started...
How to fix those dates? Scripting...
It finds all files recursively in the current folder of the list pane
and if their date is in the future compared to now(), it will reset their modified date to the time when the script was started...
Code: Select all
$items = quicksearch("/f", , , "sm");
$now = now("yyyy-mm-dd hh:nn:ss");
$filesToCorrect = "";
foreach($item, $items, <crlf>, "e") {
$file = gettoken($item, 1, "|", "t");
$mDate = formatdate(gettoken($item, 3, "|", "t"), "yyyy-mm-dd hh:nn:ss");
$diff = datediff($mDate, $now, "s");
if ($diff <= -1) { $filesToCorrect .= $file . <crlf>; }
}
if ($filesToCorrect) {
timestamp "m", $now, trim($filesToCorrect, <crlf>, "R");
}
One of my scripts helped you out? Please donate via Paypal
-
- Site Admin
- Posts: 60357
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: wrong date with drag and drop
"...since the last update" Which version did you use before?
FAQ | XY News RSS | XY Twitter
Re: wrong date with drag and drop
thank you for following up on my problem
I currently use v 20.90.0300
I have installed it immediately upon receipt of the message inviting me to install the update.
I do not remember which version I had before but as I am always installing update as soon as I see the invitation to update, I assume that the previous version was truly the last one before the current one. I hope this helps you identify which one I had before the current one.
I have never had this problem until this version
I currently use v 20.90.0300
I have installed it immediately upon receipt of the message inviting me to install the update.
I do not remember which version I had before but as I am always installing update as soon as I see the invitation to update, I assume that the previous version was truly the last one before the current one. I hope this helps you identify which one I had before the current one.
I have never had this problem until this version
-
- Site Admin
- Posts: 60357
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: wrong date with drag and drop
It's a long time ago that anything related to this issue has been changed in the app, that's why I asked. So I assume something else is responsible...
FAQ | XY News RSS | XY Twitter
Re: wrong date with drag and drop
fair enough. it might be due to the changes that Microsoft has made to Office 365 that has now become Microsoft 365.
Fixing past problems can be done with a program called Attribute Changer 9. So let's forget fixing the past
As it happens whenever I drag and drop attachments from Outlook, the remaining problem is... how can this be prevented from now on?
Fixing past problems can be done with a program called Attribute Changer 9. So let's forget fixing the past
As it happens whenever I drag and drop attachments from Outlook, the remaining problem is... how can this be prevented from now on?
-
- Site Admin
- Posts: 60357
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: wrong date with drag and drop
XY is currently in a transition phase to 64-bit. It's quite pointless to look into this now because it's likely to be affected by bitness.
I wonder why no other users report this though. So I still think it might be something peculiar to your system.
I wonder why no other users report this though. So I still think it might be something peculiar to your system.
FAQ | XY News RSS | XY Twitter
Re: wrong date with drag and drop
I usually save attachments via "Save As" which doesn't show the problem but just tested DnD now and created a very futuristic file (year 4051).
So I can confirm this with my specs (see signature).
So I can confirm this with my specs (see signature).
Ralph
(OS: W11 22H2 Home x64 - XY: Current beta - Office 2019 32-bit - Display: 1920x1080 @ 125%)
(OS: W11 22H2 Home x64 - XY: Current beta - Office 2019 32-bit - Display: 1920x1080 @ 125%)
-
- Site Admin
- Posts: 60357
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: wrong date with drag and drop
Can you also confirm that this worked better in the previous version?
FAQ | XY News RSS | XY Twitter
Re: wrong date with drag and drop
Additional piece of information:
the two dates I get with drag and drop are with 4051 (like RalphM) before being converted to 19.01.2038 04:14
At the moment of the drop, the year that is displayed is 4051 (I do not have time to see the day and month) but within half a second, that date is spontaneously changed into 19.01.2038 (like if it was recalculated as an interpretation of the previous data that appears in that field).
All my drag & drop files now show 19.01.2038
the two dates I get with drag and drop are with 4051 (like RalphM) before being converted to 19.01.2038 04:14
At the moment of the drop, the year that is displayed is 4051 (I do not have time to see the day and month) but within half a second, that date is spontaneously changed into 19.01.2038 (like if it was recalculated as an interpretation of the previous data that appears in that field).
All my drag & drop files now show 19.01.2038
Re: wrong date with drag and drop
The recalculation is done because a 32-bit value date ends on 2038-01-19 (and XY is atm a 32-bit app only)
One of my scripts helped you out? Please donate via Paypal
Re: wrong date with drag and drop
thank you for this clarification. I hope it helps the programmers figure out the bug
I also thank you for the script to correct the date.
I had managed to change the date with Attribute Changer 9 program.
-
- Site Admin
- Posts: 60357
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: wrong date with drag and drop
In the next beta please do the drag-n-drop, then check the debug log via script
dlog;
in address bar. Look for a log entry called ftLastWriteTime and show it here.FAQ | XY News RSS | XY Twitter
Re: wrong date with drag and drop
Here you are:
Code: Select all
Debug Log
XYplorer 20.90.0301 - Windows 10 Windows 8, 64-bit, Release 1909, Build 18363.778 - 2020-05-12 01:31:44.100
XYplorer 20.90.0301 - Windows 10 Windows 8, 64-bit, Release 1909, Build 18363.778 - 2020-05-12 01:31:44.100
----------------------------------------------------------------------------------------------------
- 2020-05-12 01:30:57.918 --- ftLastWriteTime: 91515139200000 -> 1/01/4501 10:00:00
Ralph
(OS: W11 22H2 Home x64 - XY: Current beta - Office 2019 32-bit - Display: 1920x1080 @ 125%)
(OS: W11 22H2 Home x64 - XY: Current beta - Office 2019 32-bit - Display: 1920x1080 @ 125%)
-
- Site Admin
- Posts: 60357
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: wrong date with drag and drop
What would have been the correct date?
FAQ | XY News RSS | XY Twitter