commit | 61b82c0b25052364bae99f83a583ab7c7f5f2d2d | [log] [tgz] |
---|---|---|
author | Bruce A. Mah <bmah@kitchenlab.org> | Fri Apr 12 17:21:19 2019 -0400 |
committer | GitHub <noreply@github.com> | Fri Apr 12 17:21:19 2019 -0400 |
tree | a142e92e03f1bfe293778efddf8a15d130488915 | |
parent | 8b9c59b3ec8c4313895bedb0ffd823a7a4753eca [diff] |
fix: Use timezone from time formatting, not a (wrong) hardcoded string. (#857) Fixes #838.
diff --git a/src/iperf_api.c b/src/iperf_api.c index 999c8e1..4c1d927 100755 --- a/src/iperf_api.c +++ b/src/iperf_api.c
@@ -662,7 +662,7 @@ iperf_on_connect(struct iperf_test *test) { time_t now_secs; - const char* rfc1123_fmt = "%a, %d %b %Y %H:%M:%S GMT"; + const char* rfc1123_fmt = "%a, %d %b %Y %H:%M:%S %Z"; char now_str[100]; char ipr[INET6_ADDRSTRLEN]; int port;