- Open vSwitch now sends RARP packets in situations where it previously
sent a custom protocol, making it consistent with behavior of QEMU and
VMware.
+ - "ovsdb-tool show-log" and the --timestamp options on ovsdb-client and
+ ovs-ofctl now display timestamps in UTC instead of the local timezone.
v1.7.0 - xx xxx xxxx
table_format_timestamp__(char *s, size_t size)
{
time_t now = time_wall();
- strftime(s, size, "%Y-%m-%d %H:%M:%S", localtime(&now));
+ strftime(s, size, "%Y-%m-%d %H:%M:%S", gmtime(&now));
}
static void
struct tm tm;
char s[128];
- localtime_r(&now, &tm);
- strftime(s, sizeof s, "%a, %d %b %Y %H:%M:%S %z", &tm);
+ gmtime_r(&now, &tm);
+ strftime(s, sizeof s, "%a, %d %b %Y %H:%M:%S", &tm);
VLOG_ERR("current time is negative: %s (%ld)", s, (long int) now);
}
time_t t = json_integer(date);
char s[128];
- strftime(s, sizeof s, "%Y-%m-%d %H:%M:%S", localtime(&t));
+ strftime(s, sizeof s, "%Y-%m-%d %H:%M:%S", gmtime(&t));
printf(" %s", s);
}
time_t now = time_wall();
char s[32];
- strftime(s, sizeof s, "%Y-%m-%d %H:%M:%S: ", localtime(&now));
+ strftime(s, sizeof s, "%Y-%m-%d %H:%M:%S: ", gmtime(&now));
fputs(s, stderr);
}