captainGeech42 / synapse-fileparser

Synapse Advanced Power-up to parse files because I don't have enterprise ;(
MIT License
5 stars 1 forks source link

ZIP timestamp nonsense #1

Open captainGeech42 opened 1 year ago

captainGeech42 commented 1 year ago

ZIP file local header has a DOS-format timestamp, which depending on implementation, is TZ relative but doesn't contain any TZ information.

Need to figure out a way to reconcile this...

captainGeech42 commented 1 year ago
self.eq(await core.count("file:bytes=$s -> file:subfile +:_archive:mtime=$t :child -> file:bytes +:name=perfection.png +:mime=image/png", opts={"vars": {"s": zip_sha256, "t": 1676206710000}}), 1)

on GH actions, the ts is 1676188710000, which is 4 hours off, suggesting a tz issue in the parsing code too