]> granicus.if.org Git - curl/commit
time-cond: fix reading the file modification time on Windows
authorMichael Kaufmann <mail@michael-kaufmann.ch>
Mon, 5 Feb 2018 20:57:39 +0000 (21:57 +0100)
committerMichael Kaufmann <mail@michael-kaufmann.ch>
Mon, 5 Feb 2018 21:02:10 +0000 (22:02 +0100)
commitd25b0503795f1fbf557632ce870298f52f2a78c1
treef3e73d71451c73ab3d6e39b71a057de92edd91b9
parent84ad1fd3047815f9c6e78728bb351b828eac10b1
time-cond: fix reading the file modification time on Windows

On Windows, stat() may adjust the unix file time by a daylight saving time
offset. Avoid this by calling GetFileTime() instead.

Fixes #2164
Closes #2204
src/Makefile.inc
src/tool_cfgable.h
src/tool_filetime.c [new file with mode: 0644]
src/tool_filetime.h [new file with mode: 0644]
src/tool_getparam.c
src/tool_operate.c