Page 1 of 1

Bug: Timestamp display via XYPlorer VS Windows Explorer

Posted: 02 Dec 2012 18:44
by Vocalpoint
I have noted an odd bug with XY (using the latest version - but can confirm it was there in previous version). Also - I noticed this for the first time when Canada switched back to Daylight savings time in early November:

In this first cap - is a view of a folder full of archives - that I manually preset the modified, accessed and created time to 3:00pm (using the XY Properties area F12). Yet XY displays timestamps one hour back from 3:00pm:

Image

If open an individual archive and it's properties - for WITHIN XY - the typical Windows properties dialog appears - showing the correct times:

Image

If I open the same folder with Windows 7 Explorer - it's view shows the correct timestamps:

Image

And a single file properties panel that is correct (opening via Windows Explorer)

Image

This oddball scenario plays out as well when I browse to the same share via the network from my machine to target machine - XY again shows 2:00pm while Windows Explorer (from my machine) shows the right time.

What exactly is going on here? I have checked the Windows Date/Time settings, the BIOS - everything that could be contributing to this - but only XY insists on showing the wrong timestamp.

Ideas?

Cheers,

VP

Re: Bug: Timestamp display via XYPlorer VS Windows Explorer

Posted: 02 Dec 2012 19:13
by admin
Fascinating.

Timestamps are saved in universal time (independent of time zones and day-light saving, and roughly the same as Greenwich Mean Time (GMT)). When I save a file in summer at 12:00, and look at it now I see 11:00. That's alright, and it happens in Explorer as well as in XYplorer. I cannot confirm the differences you see.

Re: Bug: Timestamp display via XYPlorer VS Windows Explorer

Posted: 02 Dec 2012 19:30
by Vocalpoint
admin wrote:Fascinating.

Timestamps are saved in universal time (independent of time zones and day-light saving, and roughly the same as Greenwich Mean Time (GMT)). When I save a file in summer at 12:00, and look at it now I see 11:00.
So - are you saying that XY is somehow Daylight Savings time aware? And "decides" by itself what time to display based on what time of year it is (per system clock)? Or that it's Windows doing it?
admin wrote:That's alright, and it happens in Explorer as well as in XYplorer. I cannot confirm the differences you see.
EDIT - seems that this is in fact universal in nature - with Windows anyway. I am perplexed now as to why - in my 15+ years of Windows usage - I am just now seeing this? Stands to reason my files should have been altered many a time up to now.

VP

Re: Bug: Timestamp display via XYPlorer VS Windows Explorer

Posted: 02 Dec 2012 19:55
by admin
XY uses this function (like everybody else in FM business I assume):
http://msdn.microsoft.com/de-de/library ... 85%29.aspx

Re: Bug: Timestamp display via XYPlorer VS Windows Explorer

Posted: 03 Dec 2012 06:53
by Borut
Oh yes, this is a fact of life in Windows environments. I remember the first time we became aware of that, some years ago, me and my colleagues thought: either we are all nuts, or the MS people are. :whistle:

Re: Bug: Timestamp display via XYPlorer VS Windows Explorer

Posted: 03 Dec 2012 14:46
by tedy
Storing the timestamps as UTC was anything but a bad decision. I've never had any problems with that or XY.
A source of problems could be some 3rd party program installed on the computer, even one that could not relate directly to the issue.

Try to login as administrator account and try from there. Try to run XY as administrator.

Re: Bug: Timestamp display via XYPlorer VS Windows Explorer

Posted: 03 Dec 2012 15:30
by Borut
As a side note - as far as I understand it (or think I do)...

From Wikipedia (https://en.wikipedia.org/wiki/UTC#Daylight_saving):
"UTC does not change with a change of seasons, but local time or civil time may change if a time zone jurisdiction observes daylight saving time (summer time). For example, UTC is five hours ahead of (that is, later in the day than) local time on the east coast of the United States during winter, but four hours ahead while daylight saving is observed there.[24]"

It is indeed very good to save the timestamps in UTC, as Win does. However, the Win API apparently does not present it 1:1 to applications, but translates it into a local time. Since this time changes abruptly on activation/deactivation of daylight saving time, the effect is that after the change *all* timestamps of *all* files are being shown as shifted.

This is only noticeable if you know your files very well and check this after the daylight saving time change. At least this is my experience.

Re: Bug: Timestamp display via XYPlorer VS Windows Explorer

Posted: 03 Dec 2012 15:57
by Vocalpoint
tedy wrote:Storing the timestamps as UTC was anything but a bad decision. I've never had any problems with that or XY.
A source of problems could be some 3rd party program installed on the computer, even one that could not relate directly to the issue.

Try to login as administrator account and try from there. Try to run XY as administrator.
Well - let me clarify - again. I am on as Admin. I launch XY as admin...but as shown...if I access a folder full of files - that I KNOW I changed the time stamp on (To a specific time) XY is showing the time as one hour previous.

But then just as Don is saying XY "should" work the same as Win Explorer - yet when I look at the same folder full of files in Explorer literally seconds after looking at them in XY - Explorer is showing the "correct" times that I manually stamped on each file.

So - I am confused. Either XY has to agree with Explorer (they both show an hour previous) or they both show the correct time. And that is not happening...and that is my issue.

There is something out of wack here....

VP

Re: Bug: Timestamp display via XYPlorer VS Windows Explorer

Posted: 03 Dec 2012 16:15
by admin
Vocalpoint wrote:There is something out of wack here....
Totally. No matter who or what has stamped the files, there is only ONE modified filetime per file, and all apps should show the same time at every moment in the same place. What you see is a wonder.

Re: Bug: Timestamp display via XYPlorer VS Windows Explorer

Posted: 03 Dec 2012 16:40
by Borut
admin wrote:What you see is a wonder.
If we assume that others are not able to confirm this (Don, me,...) and that there are no wonders, just phenomena without explanation, then the following is what we have here: API calls behaving differently, in dependence of what is using them. Might this be true? My first association is a rootkit.

Re: Bug: Timestamp display via XYPlorer VS Windows Explorer

Posted: 03 Dec 2012 20:37
by Vocalpoint
Borut wrote:
admin wrote:What you see is a wonder.
If we assume that others are not able to confirm this (Don, me,...) and that there are no wonders, just phenomena without explanation, then the following is what we have here: API calls behaving differently, in dependence of what is using them. Might this be true? My first association is a rootkit.

Let me add a little more to the fire. If I add a file - today - (to this folder I have been referencing ) and manually set the time on it. And then open the folder view in XY and same in Explorer - the times are correct. Both XY and Explorer agree.

But if I look at a file that was manually stamped prior to Nov 3 (Daylight Savings) switch - XY displays a hour off and Explorer displays the one and only time - the one that I stamped manually.

So - when you say - "others" are not seeing it - be sure that when you say that - you are referring to a known file with a known time stamp. Even better would be one saved and manually changed to a value you know - and was done prior to Nov 3.

If you do not have a file like this - then assumptions are not relevant to the context of the issue - as you would be looking at files with no manual input or override. And they "should" all look the same.

I am finding it very curious that for those files that I specifically manually overrode timestamps - using XY - are the ONLY files exhibiting this "one hour" difference. Every other file within the same folder - that have not been changed in anyway - all show the same time within XY or Explorer. All were saved well before Nov 3 and none have any time differences whatsoever. Whatever time was originally stamped by Windows - is the same in both apps.

VP

Re: Bug: Timestamp display via XYPlorer VS Windows Explorer

Posted: 03 Dec 2012 21:21
by admin
To make sure I just turned my clock back to August, then time-stamped a file using XYplorer, then turned back to December. Well, all looks as it should (file shows one hour earlier than it was stamped to -- in XY and WE).

Re: Bug: Timestamp display via XYPlorer VS Windows Explorer

Posted: 03 Dec 2012 21:31
by Vocalpoint
admin wrote:To make sure I just turned my clock back to August, then time-stamped a file using XYplorer, then turned back to December. Well, all looks as it should (file shows one hour earlier than it was stamped to -- in XY and WE).
I will try that. But as of now - XY and Explorer differ - but only on certain specific files.

I will also mention that the edits I did in XY - to the time stamp - was ONLY to the time portion. If a file was downloaded at 9/20/2012 @ 3:42pm - I was standardizing everything to 3:00pm so the time stamp would now read 9/20/2012 @ 3:00pm

But I also noticed that actual files that were download anytime back prior to DST and were not edited at all show the identical times in both XY and Ex.

Oddly none are advanced by an hour either when I view them today.

Will report back :)

VP