nstime: "localtime()" is an API, "local time" is local time.

This commit is contained in:
Guy Harris 2022-01-03 14:48:10 -08:00 committed by A Wireshark GitLab Utility
parent 2aa0664e25
commit 0e98eb412f
1 changed files with 2 additions and 2 deletions

View File

@ -495,7 +495,7 @@ iso8601_to_nstime(nstime_t *nstime, const char *ptr, iso8601_fmt_e format)
}
}
else {
/* No UTC offset given; ISO 8601 says this means localtime */
/* No UTC offset given; ISO 8601 says this means local time */
nstime->secs = mktime(&tm);
}
nstime->nsecs = frac;
@ -532,7 +532,7 @@ unix_epoch_to_nstime(nstime_t *nstime, const char *ptr)
return 0;
}
/* No UTC offset given; ISO 8601 says this means localtime */
/* No UTC offset given; ISO 8601 says this means local time */
nstime->secs = mktime(&tm);
/* Now let's test for fractional seconds */