wrong date with drag and drop

Things you’d like to miss in the future...
Raphael
Posts: 7
Joined: 08 May 2020 12:42

wrong date with drag and drop

Post by Raphael » 08 May 2020 12:57

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
Attachments
screenshot 3  XYplorer.jpg
dropped in WIndows explorer window
screenshot 3 XYplorer.jpg (96.66 KiB) Viewed 1165 times
screenshot 2  XYplorer.jpg
dropped in XYplorer window
screenshot 2 XYplorer.jpg (77.39 KiB) Viewed 1165 times
screenshot XYplorer.jpg
see modified date of the first file that has been dragged and droped
screenshot XYplorer.jpg (96.79 KiB) Viewed 1168 times

highend
Posts: 9101
Joined: 06 Feb 2011 00:33

Re: wrong date with drag and drop

Post by highend » 08 May 2020 13:23

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...

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 or paypal_donate (at) stdmail (dot) de

admin
Site Admin
Posts: 49053
Joined: 22 May 2004 16:48
Location: Cologne, Win 8.1, Win 10
Contact:

Re: wrong date with drag and drop

Post by admin » 09 May 2020 11:09

"...since the last update" Which version did you use before?
FAQ | XY News RSS | XY Twitter | Stay home! 🎸 Wear a mask! 😷

Raphael
Posts: 7
Joined: 08 May 2020 12:42

Re: wrong date with drag and drop

Post by Raphael » 09 May 2020 11:47

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

admin
Site Admin
Posts: 49053
Joined: 22 May 2004 16:48
Location: Cologne, Win 8.1, Win 10
Contact:

Re: wrong date with drag and drop

Post by admin » 10 May 2020 16:20

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 | Stay home! 🎸 Wear a mask! 😷

Raphael
Posts: 7
Joined: 08 May 2020 12:42

Re: wrong date with drag and drop

Post by Raphael » 10 May 2020 17:37

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?

admin
Site Admin
Posts: 49053
Joined: 22 May 2004 16:48
Location: Cologne, Win 8.1, Win 10
Contact:

Re: wrong date with drag and drop

Post by admin » 10 May 2020 18:08

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.
FAQ | XY News RSS | XY Twitter | Stay home! 🎸 Wear a mask! 😷

RalphM
Posts: 1366
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

Re: wrong date with drag and drop

Post by RalphM » 11 May 2020 03:26

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).
Ralph :-)
(OS: W10 1909 Home x64 - XY: Current beta - Office 2019 32-bit)

admin
Site Admin
Posts: 49053
Joined: 22 May 2004 16:48
Location: Cologne, Win 8.1, Win 10
Contact:

Re: wrong date with drag and drop

Post by admin » 11 May 2020 07:47

Can you also confirm that this worked better in the previous version?
FAQ | XY News RSS | XY Twitter | Stay home! 🎸 Wear a mask! 😷

Raphael
Posts: 7
Joined: 08 May 2020 12:42

Re: wrong date with drag and drop

Post by Raphael » 11 May 2020 10:20

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

highend
Posts: 9101
Joined: 06 Feb 2011 00:33

Re: wrong date with drag and drop

Post by highend » 11 May 2020 10:25

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 or paypal_donate (at) stdmail (dot) de

Raphael
Posts: 7
Joined: 08 May 2020 12:42

Re: wrong date with drag and drop

Post by Raphael » 11 May 2020 10:33

highend wrote:
11 May 2020 10:25
The recalculation is done because a 32-bit value date ends on 2038-01-19 (and XY is atm a 32-bit app only)
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.

admin
Site Admin
Posts: 49053
Joined: 22 May 2004 16:48
Location: Cologne, Win 8.1, Win 10
Contact:

Re: wrong date with drag and drop

Post by admin » 11 May 2020 11:52

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 | Stay home! 🎸 Wear a mask! 😷

RalphM
Posts: 1366
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

Re: wrong date with drag and drop

Post by RalphM » 11 May 2020 17:34

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: W10 1909 Home x64 - XY: Current beta - Office 2019 32-bit)

admin
Site Admin
Posts: 49053
Joined: 22 May 2004 16:48
Location: Cologne, Win 8.1, Win 10
Contact:

Re: wrong date with drag and drop

Post by admin » 11 May 2020 18:30

What would have been the correct date?
FAQ | XY News RSS | XY Twitter | Stay home! 🎸 Wear a mask! 😷

Post Reply