Date: 1-1-1980 shows as 12-31-1979

Found a bug in "Everything"? report it here
Post Reply
therube
Posts: 4580
Joined: Thu Sep 03, 2009 6:48 pm

Date: 1-1-1980 shows as 12-31-1979

Post by therube »

No big deal, but ...
A file Date of : 1-1-1980 12:00:00 AM, shows in Everything as 12-31-1979 11:00 PM


Create a file, dumy.TXT
Change its date/time (BulkFileChanger) to 1-1-1980 12:00:00 AM
EDIT: This may be a red herring. In my case, I actually used Altap Salamander to effect the change (see below).

Observe dumy.TXT in Everything.


WinXP & Win7
762b x86
Eastern Daylight Time
void
Developer
Posts: 15096
Joined: Fri Oct 16, 2009 11:31 pm

Re: Date: 1-1-1980 shows as 12-31-1979

Post by void »

Unable to reproduce here with BulkFileChanger on WinXP and Win7.
Everything is correctly showing 1-1-1980 12:00:00 AM for me.

Could you please send me your time zone and is Automatically adjust clock for daylight savings enabled?

This could just be a limitation of SystemTimeToTzSpecificLocalTime, Windows Explorer / File Properties displays a blank date for me for 1-1-1980 12:00:00 AM, however, earlier or later dates work fine. There must be something special about 1980, probably something to do with the old FAT32 dates.
void
Developer
Posts: 15096
Joined: Fri Oct 16, 2009 11:31 pm

Re: Date: 1-1-1980 shows as 12-31-1979

Post by void »

I haven't been able to reproduce this issue, are you changing your time zone?
Is it possible Everything is running as a different user with a different time zone?

Windows Explorer displays ‎Tuesday, ‎1 ‎January ‎1980, ‏‎12:00:00 AM
Everything displays ‎Tuesday, ‎1 ‎January ‎1980, ‏‎12:00:00 AM
DIR from a command prompt displays: 01/01/1980 01:00 AM !!?!

To me, this seems to be a limitation with the OS and converting dates to the correct day light savings adjusted time.
With old dates, such as 1980, the OS is probably guessing the day light savings adjustement.
I'm not sure why we have different results if we are using the same time zone...
void
Developer
Posts: 15096
Joined: Fri Oct 16, 2009 11:31 pm

Re: Date: 1-1-1980 shows as 12-31-1979

Post by void »

I've added more debug information to Everything to show any time conversion failures.

Please try Everything 1.4.1.766b:
http://www.voidtools.com/Everything-1.4.1.766b.x64.zip
http://www.voidtools.com/Everything-1.4.1.766b.x86.zip

Does Everything display any red error messages when you show a result in Everything with the modified date of 1/1/1980?
therube
Posts: 4580
Joined: Thu Sep 03, 2009 6:48 pm

Re: Date: 1-1-1980 shows as 12-31-1979

Post by therube »

> are you changing your time zone?

No.

> Is it possible Everything is running as a different user with a different time zone?

No.

> any red error messages when you show a result in Everything with the modified date of 1/1/1980?

Not that I'm seeing (assuming I looking correctly).

Code: Select all

Everything
Version 1.4.1.766b (x86)
Windows NT 6.1
Processors 4
IsAdmin 1
AppData 0
Service 0
cmdline "C:\DEV\Locate\Everything.exe" -isrunas -instance runasdate
WM_ACTIVATE 00000000 00000000, lastfocus 002e0f7a, current focus 002e0f7a
WM_ACTIVATE 00000001 00000000, lastfocus 002e0f7a, current focus 00000000
search 'dumy ' filter '' sort 13
SET SORT 12
found 91 folders, size 65540, db search time taken: 0.016824 seconds
found 151 files, size 65540, db search time taken: 0.057067 seconds
total size 483254387, calculated in 0.000003 seconds
set sort 13 1
SET SORT 3 13
finished sort, time taken 0.000230 seconds
update selection 0.000001 seconds
DB_WAIT: _db_ready_proc waiting...
DB_WAIT: _db_ready_proc waited 0.000073 seconds
new results
search 'dumy .' filter '' sort 13
SET SORT 12
found 75 folders, size 65540, db search time taken: 0.018061 seconds
found 148 files, size 65540, db search time taken: 0.049504 seconds
total size 483249071, calculated in 0.000011 seconds
set sort 13 1
SET SORT 3 13
finished sort, time taken 0.000813 seconds
update selection 0.000000 seconds
DB_WAIT: _db_ready_proc waiting...
DB_WAIT: _db_ready_proc waited 0.000266 seconds
new results
search 'dumy .T' filter '' sort 13
SET SORT 12
found 1 folders, size 65540, db search time taken: 0.016217 seconds
found 26 files, size 65540, db search time taken: 0.055311 seconds
total size 352133181, calculated in 0.000001 seconds
set sort 13 1
SET SORT 3 13
finished sort, time taken 0.000957 seconds
update selection 0.000000 seconds
DB_WAIT: _db_ready_proc waiting...
DB_WAIT: _db_ready_proc waited 0.000265 seconds
new results
search 'dumy .TX' filter '' sort 13
SET SORT 12
found 0 folders, size 0, db search time taken: 0.018558 seconds
found 23 files, size 65540, db search time taken: 0.053154 seconds
total size 352133143, calculated in 0.000001 seconds
set sort 13 1
SET SORT 3 13
finished sort, time taken 0.000730 seconds
update selection 0.000000 seconds
DB_WAIT: _db_ready_proc waiting...
DB_WAIT: _db_ready_proc waited 0.000288 seconds
new results
when ready 11 0000002d 00000000
search 'dumy .TXT' filter '' sort 13
SET SORT 12
found 0 folders, size 0, db search time taken: 0.016341 seconds
found 23 files, size 65540, db search time taken: 0.055400 seconds
total size 352133143, calculated in 0.000001 seconds
set sort 13 1
SET SORT 3 13
finished sort, time taken 0.000720 seconds
update selection 0.000000 seconds
DB_WAIT: _db_ready_proc waiting...
DB_WAIT: _db_ready_proc waited 0.000271 seconds
new results
monitor wakeup timer 1000
WAIT 1000, 6 waits
_db_monitor_ntfs_update_event_proc 0
start _db_monitor_ntfs_update_thread_proc
update index E:
updated E: in 0.000138 seconds
_db_monitor_ntfs_process_usn_records_thread_proc
waited 0
monitor wakeup timer 1000
WAIT 1000, 6 waits
processed usn records in 0.001170 seconds
processed ntfs usn records in 0.004112 seconds
DB_WAIT: _db_ready_proc waiting...
DB_WAIT: _db_ready_proc waited 0.001335 seconds
waited 1029
WAIT 0, 7 waits
WM_ACTIVATE 00000000 00000000, lastfocus 002e0f7a, current focus 002e0f7a
WM_ACTIVATE 00000002 00000000, lastfocus 002e0f7a, current focus 00000000
WM_ACTIVATE 00000000 00000000, lastfocus 002e0f7a, current focus 002e0f7a
monitor wakeup timer 1000
WAIT 1000, 6 waits
_db_monitor_ntfs_update_event_proc 0
start _db_monitor_ntfs_update_thread_proc
update index E:
updated E: in 0.000086 seconds
_db_monitor_ntfs_process_usn_records_thread_proc
waited 0
monitor wakeup timer 1000
WAIT 1000, 6 waits
processed usn records in 0.001686 seconds
processed ntfs usn records in 0.002701 seconds
DB_WAIT: _db_ready_proc waiting...
DB_WAIT: _db_ready_proc waited 0.000476 seconds
waited 1014
monitor wakeup timer 1000
WAIT 1000, 6 waits
_db_monitor_ntfs_update_event_proc 0
start _db_monitor_ntfs_update_thread_proc
update index E:
updated E: in 0.000092 seconds
_db_monitor_ntfs_process_usn_records_thread_proc
waited 0
monitor wakeup timer 1000
WAIT 1000, 6 waits
processed usn records in 0.000948 seconds
processed ntfs usn records in 0.001374 seconds
DB_WAIT: _db_ready_proc waiting...
DB_WAIT: _db_ready_proc waited 0.000256 seconds
waited 1014
WAIT 0, 7 waits
monitor wakeup timer 1000
WAIT 1000, 6 waits
_db_monitor_ntfs_update_event_proc 0
start _db_monitor_ntfs_update_thread_proc
update index C:
updated C: in 0.000071 seconds
_db_monitor_ntfs_process_usn_records_thread_proc
waited 15
processed usn records in 0.000135 seconds
monitor wakeup timer 985
WAIT 985, 6 waits
DB_WAIT: _db_ready_proc waiting...
processed ntfs usn records in 0.000588 seconds
DB_WAIT: _db_ready_proc waited 0.000539 seconds
waited 999
WAIT 0, 7 waits
monitor wakeup timer 1000
WAIT 1000, 6 waits
_db_monitor_ntfs_update_event_proc 0
start _db_monitor_ntfs_update_thread_proc
update index E:
updated E: in 0.000046 seconds
_db_monitor_ntfs_process_usn_records_thread_proc
waited 0
monitor wakeup timer 1000
WAIT 1000, 6 waits
processed usn records in 0.000287 seconds
processed ntfs usn records in 0.000652 seconds
DB_WAIT: _db_ready_proc waiting...
DB_WAIT: _db_ready_proc waited 0.000192 seconds
waited 47
monitor wakeup timer 953
WAIT 953, 5 waits
_db_monitor_ntfs_update_event_proc 0
start _db_monitor_ntfs_update_thread_proc
update index C:
updated C: in 0.000087 seconds
waited 0
monitor wakeup timer 953
WAIT 953, 5 waits
_db_monitor_ntfs_process_usn_records_thread_proc
processed usn records in 0.000249 seconds
processed ntfs usn records in 0.001865 seconds
DB_WAIT: _db_ready_proc waiting...
DB_WAIT: _db_ready_proc waited 0.000293 seconds
new results
waited 967
monitor wakeup timer 33
WAIT 33, 5 waits
_db_monitor_ntfs_update_event_proc 0
start _db_monitor_ntfs_update_thread_proc
update index E:
updated E: in 0.000097 seconds
_db_monitor_ntfs_process_usn_records_thread_proc
waited 0
monitor wakeup timer 17
WAIT 17, 5 waits
processed usn records in 0.000852 seconds
processed ntfs usn records in 0.001306 seconds
DB_WAIT: _db_ready_proc waiting...
DB_WAIT: _db_ready_proc waited 0.000263 seconds
waited 31
monitor wakeup timer 953
WAIT 953, 5 waits
_db_monitor_ntfs_update_event_proc 0
start _db_monitor_ntfs_update_thread_proc
update index C:
updated C: in 0.000056 seconds
_db_monitor_ntfs_process_usn_records_thread_proc
waited 0
processed usn records in 0.000155 seconds
monitor wakeup timer 953
WAIT 953, 5 waits
DB_WAIT: _db_ready_proc waiting...
processed ntfs usn records in 0.000684 seconds
DB_WAIT: _db_ready_proc waited 0.000543 seconds
new results
waited 967
monitor wakeup timer 33
WAIT 33, 5 waits
_db_monitor_ntfs_update_event_proc 0
start _db_monitor_ntfs_update_thread_proc
update index E:
updated E: in 0.000065 seconds
_db_monitor_ntfs_process_usn_records_thread_proc
waited 0
monitor wakeup timer 33
WAIT 33, 5 waits
processed usn records in 0.000196 seconds
processed ntfs usn records in 0.000973 seconds
DB_WAIT: _db_ready_proc waiting...
DB_WAIT: _db_ready_proc waited 0.000256 seconds
waited 63
monitor wakeup timer 937
WAIT 937, 6 waits
waited 951
WAIT 0, 7 waits
WM_ACTIVATE 00000001 00000000, lastfocus 002e0f7a, current focus 00000000
WM_ACTIVATE 00000000 00000000, lastfocus 002e0f7a, current focus 002e0f7a
WM_ACTIVATE 00000001 00000000, lastfocus 002e0f7a, current focus 00000000
search 'dumy .TXT ' filter '' sort 13
SET SORT 12
found 0 folders, size 0, db search time taken: 0.018486 seconds
found 24 files, size 65540, db search time taken: 0.056771 seconds
total size 352133590, calculated in 0.000001 seconds
set sort 13 1
SET SORT 3 13
finished sort, time taken 0.000679 seconds
update selection 0.000001 seconds
DB_WAIT: _db_ready_proc waiting...
DB_WAIT: _db_ready_proc waited 0.000251 seconds
new results
search 'dumy .TXT d' filter '' sort 13
SET SORT 12
found 0 folders, size 0, db search time taken: 0.018163 seconds
found 24 files, size 65540, db search time taken: 0.050223 seconds
total size 352133590, calculated in 0.000001 seconds
set sort 13 1
SET SORT 3 13
finished sort, time taken 0.000773 seconds
update selection 0.000000 seconds
DB_WAIT: _db_ready_proc waiting...
DB_WAIT: _db_ready_proc waited 0.000259 seconds
new results
search 'dumy .TXT di' filter '' sort 13
SET SORT 12
found 0 folders, size 0, db search time taken: 0.018275 seconds
found 1 files, size 65540, db search time taken: 0.051243 seconds
total size 447, calculated in 0.000000 seconds
set sort 13 1
SET SORT 3 13
finished sort, time taken 0.000777 seconds
update selection 0.000000 seconds
DB_WAIT: _db_ready_proc waiting...
DB_WAIT: _db_ready_proc waited 0.000417 seconds
new results
when ready 11 0000002d 00000000
search 'dumy .TXT dir' filter '' sort 13
SET SORT 12
found 0 folders, size 0, db search time taken: 0.018051 seconds
found 1 files, size 65540, db search time taken: 0.052738 seconds
total size 447, calculated in 0.000000 seconds
set sort 13 1
SET SORT 3 13
finished sort, time taken 0.000723 seconds
update selection 0.000000 seconds
DB_WAIT: _db_ready_proc waiting...
DB_WAIT: _db_ready_proc waited 0.000312 seconds
new results
search 'dumy .TXT di' filter '' sort 13
SET SORT 12
found 0 folders, size 0, db search time taken: 0.018132 seconds
found 1 files, size 65540, db search time taken: 0.058624 seconds
total size 447, calculated in 0.000000 seconds
set sort 13 1
SET SORT 3 13
finished sort, time taken 0.000747 seconds
update selection 0.000013 seconds
DB_WAIT: _db_ready_proc waiting...
DB_WAIT: _db_ready_proc waited 0.000356 seconds
new results
search 'dumy .TXT d' filter '' sort 13
SET SORT 12
found 0 folders, size 0, db search time taken: 0.018078 seconds
found 24 files, size 65540, db search time taken: 0.052894 seconds
total size 352133590, calculated in 0.000000 seconds
set sort 13 1
SET SORT 3 13
finished sort, time taken 0.000810 seconds
update selection 0.000000 seconds
DB_WAIT: _db_ready_proc waiting...
DB_WAIT: _db_ready_proc waited 0.000285 seconds
new results
search 'dumy .TXT ' filter '' sort 13
SET SORT 12
found 0 folders, size 0, db search time taken: 0.018327 seconds
found 24 files, size 65540, db search time taken: 0.053219 seconds
total size 352133590, calculated in 0.000001 seconds
set sort 13 1
SET SORT 3 13
finished sort, time taken 0.000657 seconds
update selection 0.000001 seconds
DB_WAIT: _db_ready_proc waiting...
DB_WAIT: _db_ready_proc waited 0.000250 seconds
new results
when ready 11 0000002d 00000000
search 'dumy .TXT' filter '' sort 13
SET SORT 12
found 0 folders, size 0, db search time taken: 0.016497 seconds
found 24 files, size 65540, db search time taken: 0.055919 seconds
total size 352133590, calculated in 0.000001 seconds
set sort 13 1
SET SORT 3 13
finished sort, time taken 0.000847 seconds
update selection 0.000001 seconds
DB_WAIT: _db_ready_proc waiting...
DB_WAIT: _db_ready_proc waited 0.000270 seconds
new results
WM_ACTIVATE 00000000 00000000, lastfocus 002e0f7a, current focus 002e0f7a
WM_ACTIVATE 00000002 00000000, lastfocus 002e0f7a, current focus 00000000
set sort 0 1
SET SORT 2 0
finished sort, time taken 0.006954 seconds
update selection 0.000001 seconds
DB_WAIT: _db_ready_proc waiting...
DB_WAIT: _db_ready_proc waited 0.000427 seconds
new results
WM_ACTIVATE 00000000 00000000, lastfocus 002e0f7a, current focus 002e0f7a
monitor wakeup timer 1000
WAIT 1000, 6 waits
_db_monitor_ntfs_update_event_proc 0
start _db_monitor_ntfs_update_thread_proc
update index E:
updated E: in 0.000087 seconds
_db_monitor_ntfs_process_usn_records_thread_proc
waited 0
processed usn records in 0.000049 seconds
monitor wakeup timer 1000
WAIT 1000, 6 waits
DB_WAIT: _db_ready_proc waiting...
processed ntfs usn records in 0.000586 seconds
DB_WAIT: _db_ready_proc waited 0.000538 seconds
waited 1014
WAIT 0, 7 waits
_db_monitor_ntfs_update_event_proc 0
start _db_monitor_ntfs_update_thread_proc
monitor wakeup timer 1000
update index C:
WAIT 1000, 6 waits
updated C: in 0.000081 seconds
waited 0
monitor wakeup timer 1000
WAIT 1000, 6 waits
_db_monitor_ntfs_process_usn_records_thread_proc
processed usn records in 0.001934 seconds
processed ntfs usn records in 0.003501 seconds
DB_WAIT: _db_ready_proc waiting...
DB_WAIT: _db_ready_proc waited 0.000550 seconds
new results
waited 1030
WAIT 0, 7 waits
WM_ACTIVATE 00000001 00000000, lastfocus 002e0f7a, current focus 00000000
monitor wakeup timer 1000
WAIT 1000, 6 waits
_db_monitor_ntfs_update_event_proc 0
start _db_monitor_ntfs_update_thread_proc
update index E:
updated E: in 0.000070 seconds
_db_monitor_ntfs_process_usn_records_thread_proc
waited 0
monitor wakeup timer 1000
WAIT 1000, 6 waits
processed usn records in 0.000670 seconds
processed ntfs usn records in 0.002258 seconds
DB_WAIT: _db_ready_proc waiting...
DB_WAIT: _db_ready_proc waited 0.000630 seconds
waited 1014
WAIT 0, 7 waits
set sort 13 1
SET SORT 2 13
finished sort, time taken 0.023194 seconds
update selection 0.000000 seconds
DB_WAIT: _db_ready_proc waiting...
DB_WAIT: _db_ready_proc waited 0.000627 seconds
new results
monitor wakeup timer 1000
_db_monitor_ntfs_update_event_proc 0
start _db_monitor_ntfs_update_thread_proc
WAIT 1000, 6 waits
update index E:
updated E: in 0.000053 seconds
_db_monitor_ntfs_process_usn_records_thread_proc
waited 0
monitor wakeup timer 1000
WAIT 1000, 6 waits
processed usn records in 0.000537 seconds
processed ntfs usn records in 0.001757 seconds
DB_WAIT: _db_ready_proc waiting...
DB_WAIT: _db_ready_proc waited 0.000557 seconds
waited 1014
WAIT 0, 7 waits
tooltip created d304ee
WM_ACTIVATE 00000000 00000000, lastfocus 002e0f7a, current focus 002e0f7a
monitor wakeup timer 1000
WAIT 1000, 6 waits
_db_monitor_ntfs_update_event_proc 0
start _db_monitor_ntfs_update_thread_proc
update index C:
updated C: in 0.000176 seconds
waited 0
WM_ACTIVATE 00000001 00000000, lastfocus 002e0f7a, current focus 00000000
WAIT 0, 7 waits
WM_ACTIVATE 00000000 00000000, lastfocus 002e0f7a, current focus 002e0f7a
_db_monitor_ntfs_process_usn_records_thread_proc
processed usn records in 0.002813 seconds
processed ntfs usn records in 0.004160 seconds
DB_WAIT: _db_ready_proc waiting...
DB_WAIT: _db_ready_proc waited 0.000921 seconds
new results
when ready 11 0000002d 00000000
WM_ACTIVATE 00000001 00000000, lastfocus 002e0f7a, current focus 00000000
monitor wakeup timer 1000
WAIT 1000, 6 waits
_db_monitor_ntfs_update_event_proc 0
start _db_monitor_ntfs_update_thread_proc
update index E:
updated E: in 0.000077 seconds
_db_monitor_ntfs_process_usn_records_thread_proc
waited 0
monitor wakeup timer 1000
WAIT 1000, 6 waits
processed usn records in 0.000554 seconds
processed ntfs usn records in 0.001695 seconds
DB_WAIT: _db_ready_proc waiting...
DB_WAIT: _db_ready_proc waited 0.000541 seconds
waited 1014
WAIT 0, 7 waits
monitor wakeup timer 1000
_db_monitor_ntfs_update_event_proc 0
start _db_monitor_ntfs_update_thread_proc
WAIT 1000, 6 waits
update index E:
updated E: in 0.000095 seconds
_db_monitor_ntfs_process_usn_records_thread_proc
waited 0
monitor wakeup timer 1000
WAIT 1000, 6 waits
processed usn records in 0.000981 seconds
processed ntfs usn records in 0.003520 seconds
DB_WAIT: _db_ready_proc waiting...
DB_WAIT: _db_ready_proc waited 0.001003 seconds
waited 1030
WAIT 0, 7 waits
WM_ACTIVATE 00000000 00000000, lastfocus 002e0f7a, current focus 002e0f7a
therube
Posts: 4580
Joined: Thu Sep 03, 2009 6:48 pm

Re: Date: 1-1-1980 shows as 12-31-1979

Post by therube »

I wonder if I've not been misleading you all along ... ?
If you set a date prior to 01/01/1980, Windows Explorer will not display this date, due to a limitation originally created for old FAT systems. You can still watch an old file date using other file managers like 7-zip, using BulkFileChanger utility, or by right-clicking on the file and choosing 'Properties'.
I never actually used BFC, rather in all instances - when I've manually changed the file date, I've used Altap Salamander (Ctrl+F2 brings up its Attribute Changer) & I wonder if it is not Salamander that is off by one (OffByOne) when modifying, displaying files?
void
Developer
Posts: 15096
Joined: Fri Oct 16, 2009 11:31 pm

Re: Date: 1-1-1980 shows as 12-31-1979

Post by void »

The debug console would be full of red SystemTimeToTzSpecificLocalTime failed x messages whenever a date is displayed, it would be hard to miss, that's why that debug message was disabled as it would flood the debug console. It's only enabled in 766b.
I never actually used BFC, rather in all instances - when I've manually changed the file date, I've used Altap Salamander (Ctrl+F2 brings up its Attribute Changer) & I wonder if it is not Salamander that is off by one (OffByOne) when modifying, displaying files?
Looks like Salamander could be displaying dates without adjusting for daylight savings? that would explain what we are seeing here (command prompt doesn't adjust for daylight savings, pre 1980 dates don't display in Explorer / file properties)
Try setting a file time to 1/1/1980 12:00am with BFC.
therube
Posts: 4580
Joined: Thu Sep 03, 2009 6:48 pm

Re: Date: 1-1-1980 shows as 12-31-1979

Post by therube »

I first noticed this with http://www.sumatrapdfreader.org/dl/SumatraPDF-3.1.zip.

When I "looked" on disk, I saw the file dated 01/01/1980 12:00:00 AM.
When I "looked" in the archive (ZIP file), I saw the same.

And I thought, how odd.

And it was with that that I ended up here, that I noticed Everything showing 12/31/1979 11:00 PM.


Now, all my "looking", at that point, was with Salamander (as in is there any other way to do things ;-), both for disk & archive "looking").

Now, just what is the date of SumatraPDF.exe, within that ZIP file?

Code: Select all

UNZIP -l SUM*.ZIP

Archive:  SumatraPDF-3.1.zip
  Length      Date    Time    Name
---------  ---------- -----   ----
  6453832  00/00/1980 00:00   SumatraPDF.exe
---------                     -------
  6453832                     1 file

-------

7-ZIP.EXE -l SUM*.ZIP

7-Zip [32] 16.03 : Copyright (c) 1999-2016 Igor Pavlov : 2016-09-28

Scanning the drive for archives:
1 file, 3712888 bytes (3626 KiB)

Listing archive: SumatraPDF-3.1.zip

--
Path = SumatraPDF-3.1.zip
Type = zip
Physical Size = 3712888

   Date      Time    Attr         Size   Compressed  Name
------------------- ----- ------------ ------------  ------------------------
                    .....      6453832      3712746  SumatraPDF.exe
------------------- ----- ------------ ------------  ------------------------
                               6453832      3712746  1 files
therube
Posts: 4580
Joined: Thu Sep 03, 2009 6:48 pm

Re: Date: 1-1-1980 shows as 12-31-1979

Post by therube »

void
Developer
Posts: 15096
Joined: Fri Oct 16, 2009 11:31 pm

Re: Date: 1-1-1980 shows as 12-31-1979

Post by void »

SumatraPDF.exe has the date Monday, ‎9 ‎January ‎1645, ‏‎4:49:55 PM UTC for me (extracted with WinRAR).

Perhaps your unzip program is not setting the modified date with the correct daylight savings time?
therube
Posts: 4580
Joined: Thu Sep 03, 2009 6:48 pm

Re: Date: 1-1-1980 shows as 12-31-1979

Post by therube »

Altap Salamander forums, Date: 12-31-1979 shows as 1-1-1980.
therube
Posts: 4580
Joined: Thu Sep 03, 2009 6:48 pm

Re: Date: 1-1-1980 shows as 12-31-1979

Post by therube »

Monday, ‎9 ‎January ‎1645, ‏‎4:49:55
Oh, "extracted", let me try that next...

Image

Image



Extracting:
7-zip (1603, GUI & command-line) gave me 10/24/2015 01:22:24 AM.
WinRAR (5.40, GUI) gave me current date/time.
Salamander gives me 1/1/1980 12:00:00.

Odd.
In particular the differences we're seeing with RAR?

Given the actual ZIP archive date, 10/24/2015 01:22:24 AM (or the "actual date" as determined by my download manager, which presumably would coincide with the date as the file sits on the server), it would seem that 7-zip is extracting the file with the correct date.
... Hmm ... Actually, now thinking, that it is not able to determine an actual date, & because of that it is then defaulting to setting the date to the archive date itself. I bet that's what's happening. In any case, that would seem to be the most "correct".


(Both 7-zip & WinRAR [GUI] were run sandboxed, Sandboxie. Salamander & 7-zip command-line were run natively.)


Oh, & copy/paste the file using (Win7) built-in "unzip", gives me a SumatraPDF.exe of 03/01/1601 07:00:42 PM.


How do you like those crackers.


Win7, x64.
32-bit versions of all utilities (other then I have no clue about "Windows Explorer" unzip.)
therube
Posts: 4580
Joined: Thu Sep 03, 2009 6:48 pm

Re: Date: 1-1-1980 shows as 12-31-1979

Post by therube »

Version 1.31:

Fixed bug: When a program executed with RunAsDate requested to get the current time in GMT (GetSystemTime and GetSystemTimeAsFileTime API), RunAsDate provided the wrong time with a difference of one hour if the computer date was in summer (With daylight saving time) but the selected RunAsDate date was in winter (Without daylight saving time) and vice versa...
http://www.nirsoft.net/utils/run_as_date.html
void
Developer
Posts: 15096
Joined: Fri Oct 16, 2009 11:31 pm

Re: Date: 1-1-1980 shows as 12-31-1979

Post by void »

In particular the differences we're seeing with RAR?
I'm using WinRar 3.93, in WinRAR the date modified is blank, when I extract the rar, the created file has a date modified of ‎Wednesday, ‎10 ‎February ‎1627, ‏‎20:32:01 (UTC+9:30) in Windows Explorer.

7Zip is also showing blank dates, when I extract it sets the extracted files date modified to the same as the zips date modified.

Is your temp folder on a FAT32 drive by any chance? maybe that's why this odd date is resetting to 1980?

I get the 1601 date when I use the built in Windows unzip too.
therube
Posts: 4580
Joined: Thu Sep 03, 2009 6:48 pm

Re: Date: 1-1-1980 shows as 12-31-1979

Post by therube »

WinRAR 3.93, XP, NTFS, extracts to: 01/01/1601.
If I unset 'Set modification time' (in WinRAR), I get current date/time.
Is your temp folder on a FAT32 drive by any chance?
No.

The 1-1-1980 must be Salamander, & what it does when it doesn't find a "date".
(Like how 7-zip sets the date modified to the archive date.)


The fact that a date of 1-1-1980 may be "off", that's related (to all the "time" nonsense) & is a slightly different issue, IMO.


(One wonders how they can send rockets to other planets, successfully ;-).
http://spaceplace.nasa.gov/launch-windows/en/)
Post Reply