summaryrefslogtreecommitdiff
path: root/ext/Time/HiRes/HiRes.xs
diff options
context:
space:
mode:
authorArtur Bergman <sky@nanisky.com>2001-09-21 10:33:34 +0000
committerArtur Bergman <sky@nanisky.com>2001-09-21 10:33:34 +0000
commit408dc35d26ca372a9b20cc32e609ae2e4c6bbe94 (patch)
tree69c9998441ff0af64c36d9f72cbe4fc1c0615ed7 /ext/Time/HiRes/HiRes.xs
parent5b414d21a66f6678db9e3b0b53e1373d029cf767 (diff)
downloadperl-408dc35d26ca372a9b20cc32e609ae2e4c6bbe94.tar.gz
Fixed bug where Time::HiRes::time returned time adjusted to
timezone! GetSystemTime should be available on all Win32 platforms we support. Perhaps Time::HiRes should be extended to support WinCE and Novell? p4raw-id: //depot/perl@12105
Diffstat (limited to 'ext/Time/HiRes/HiRes.xs')
-rw-r--r--ext/Time/HiRes/HiRes.xs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/Time/HiRes/HiRes.xs b/ext/Time/HiRes/HiRes.xs
index 4087455129..97ea55983f 100644
--- a/ext/Time/HiRes/HiRes.xs
+++ b/ext/Time/HiRes/HiRes.xs
@@ -70,7 +70,7 @@ gettimeofday (struct timeval *tp, int nothing)
time_t tt;
struct tm tmtm;
/* mktime converts local to UTC */
- GetLocalTime (&st);
+ GetSystemTime (&st);
tmtm.tm_sec = st.wSecond;
tmtm.tm_min = st.wMinute;
tmtm.tm_hour = st.wHour;