Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Recently I noticed that the files ZIPped on one of our servers in Japan being extracted on US server shows the future dates (+13 hours ahead). Experimentally I found that ZIP and RAR formats suffer from this issue. Are there any other archivers storing dates in UTC format?

share|improve this question
2  
Well, isn't that time preserving ? At the same time it is 01 in Japan it is 13 hours ahead in USA .... at that same moment. –  ldigas Jul 4 '10 at 17:58
    
It's not the same moment. Say file is created at 06:00PM at Jp (say GMT+9) and put into ZIP at the same time. At 6:05PM GMT+9 file is extracted on US server (local time is 02:05AM EST) and file date is set to 6:05PM EST. Total mess, right? –  olegz Jul 5 '10 at 4:41

1 Answer 1

up vote 1 down vote accepted

According to the docs of 7Zip, the archive formats tar, gzip2 and 7z (7Zip) use UTC timestamps. So these should work properly across timezones. However, in practice this will probably only work if the filesystems used also use UTC internally (such as most Unix filesystems and NTFS).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.