TC7.01 ARJ bug in date format

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Jacek
Junior Member
Junior Member
Posts: 8
Joined: 2007-06-08, 19:09 UTC

TC7.01 ARJ bug in date format

Post by *Jacek »

Continuation from http://ghisler.ch/board/viewtopic.php?p=127117#127117

Archives packed on linux have wrong dates in ARJ archive.
And a screenshot:
Image: http://jacek.dyski.one.pl/arj/tcmd701_arj_daty.jpg
On the left - original *.txt files, on the right - the same files in ARJ file.
Reg number: #146831, #147830
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3864
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

Which packer (version) are you using at Linux site ?

What about putting the archive file on the same share as the image ? Just to try it ourselfs and to analyse the format ...
#5767 Personal license
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

The documentation or ARJ doesn't describe in what format the date/time is stored. In fact, I tried to unpack the files with arj.exe, and got the same false dates. I have changed TC to convert the date format from Unix to FAT dates, and it seems to give the right results.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This should be fixed in TC 7.02, please test!
Author of Total Commander
https://www.ghisler.com
Jacek
Junior Member
Junior Member
Posts: 8
Joined: 2007-06-08, 19:09 UTC

Post by *Jacek »

Ok - I have already checked this.
Files dates are earlier exactly 1 hour (maybe it is because of my GMT +1 timezone?)

Directory dates... It is a bit more complicated:
- if directory is empty - OK, dates are -1 hour (the same with files)
- if directory is not empty, date of this dir is first (or last) entry inside this directory.

But directory dates are not as important as file dates (because during extract process these dir dates are not restored).
If you would like to fix this, I can pack files and directories with different dates to check this.
Reg number: #146831, #147830
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I'm using the same functions as for all other packers which support Unix times. It takes a Unix time in UTC format (GMT timezone) and converts it to local FAT(32) time used internally by TC.

I have no idea what time zone is used to store the Unix time of your files, there seems to be no documentation at all. If you can provide some docs, I will of course change it, but not in TC 7.02a, sorry - there is not enough time.
Author of Total Commander
https://www.ghisler.com
Post Reply