Fix Windows local time
authorJeff Furlong <jeff.furlong@wdc.com>
Thu, 14 Dec 2017 01:19:09 +0000 (01:19 +0000)
committerJens Axboe <axboe@kernel.dk>
Thu, 14 Dec 2017 16:10:12 +0000 (09:10 -0700)
commit7ff0297f39d0dea72a9b004393ca3c5e5f397760
tree92f65ea1b456c1ce17b9703324c040f6245e9bb3
parentdd199856ec977d7d1d1c977b8d53643d9e373be2
Fix Windows local time

The fio summary output shows when the job completed, but references
system time on Windows.  On Linux, local time (such as with time zone
specifics) is referenced.  This patch converts Windows system time to
local time.

Before:
fio-3.2-72-ge80d-dirty
Starting 1 thread
Jobs: 1 (f=0): [f(1)][100.0%][r=69.6MiB/s,w=0KiB/s][r=17.8k,w=0 IOPS][eta 00m:00s]
test: (groupid=0, jobs=1): err= 0: pid=1360: Wed Dec 13 23:21:16 2017 <--System Time

After:
fio-3.2-72-ge80d-dirty
Starting 1 thread
Jobs: 1 (f=0): [f(1)][100.0%][r=73.2MiB/s,w=0KiB/s][r=18.7k,w=0 IOPS][eta 00m:00s]
test: (groupid=0, jobs=1): err= 0: pid=8088: Wed Dec 13 15:22:07 2017 <--Local Time

Signed-off-by: Jens Axboe <axboe@kernel.dk>
os/windows/posix.c