chansen / p5-http-tiny

Tiny HTTP Client
https://metacpan.org/dist/HTTP-Tiny
53 stars 52 forks source link

Deal with stat and daylight savings issues on Windows #72

Closed nanis closed 8 years ago

nanis commented 9 years ago

by reading back mtime after utime. This is due to a difference in the way the underlying system calls on Windows behave.

Even though NTFS stores file times in UTC, what you get depends on whether you ask for that information through a handle or filename.

See http://www.nu42.com/2015/03/stat-vs-fstat-msvcrt-windows.html

dagolden commented 9 years ago

Thanks! The next time I'm on a HTTP-Tiny maintenance cycle, I'll look into this and likely apply it.

xdg commented 8 years ago

Sorry to take so long. Cherry-picked this to master.