Skip to content

Commit 4df94c7

Browse files
author
Will Sobel
committed
Removed %z from time format since there is a bug in MS runtime.
1 parent eeb9524 commit 4df94c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

agent/globals.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ string getCurrentTime(time_t aSec, int aUsec, TimeFormat format)
126126
switch (format)
127127
{
128128
case HUM_READ:
129-
strftime(timestamp, 50, "%a, %d %b %Y %H:%M:%S %Z", &timeinfo);
129+
std::strftime(timestamp, 50, "%a, %d %b %Y %H:%M:%S GMT", &timeinfo);
130130
break;
131131
case GMT:
132132
strftime(timestamp, 50, "%Y-%m-%dT%H:%M:%SZ", &timeinfo);

0 commit comments

Comments
 (0)