mirror of
https://github.com/wader/fq.git
synced 2024-12-20 03:41:46 +03:00
a83cac6021
MSDOS time/date was read in wrong order and also did not take into account that the bit ranges in the shortis are in little-endian. Remodel modification_time/date to be one struct with fat_time, fat_date LE shorts and then synthetic values for day, hours, minute etc and also a unix field with the timestamp as unix time. Also refactor and clenaup extra fields/extended code a bit. Fixes #792
745 B
745 B
Supports ZIP64.
Timestamp and time zones
The timestamp accessed via .local_files[].last_modification
is encoded in ZIP files using MS-DOS representation which lacks a known time zone. Probably the local time/date was used at creation. The unix_guess
field in last_modification
is a guess assuming the local time zone was UTC at creation.