mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2024-04-21 12:32:08 +00:00
The problem addressed here is that the FileInfo struct's FTime field is set in S3 backend. This was being passed as milliseconds epoch. That value was being passed into `time.Unix(x, 0)` which accepts arguments as either/both (seconds, nanoseconds). By passing milliseconds to this function expecting seconds, we have wildly incorrect modified at timestamps. I tested this against the same bucket that was problematic before and it's now showing correctly :).