aboutsummaryrefslogtreecommitdiffstats
path: root/editcap.c
diff options
context:
space:
mode:
authorJohn Thacker <johnthacker@gmail.com>2021-11-30 01:04:07 -0500
committerJohn Thacker <johnthacker@gmail.com>2021-12-01 20:50:37 -0500
commitcf0ecc4fe155d0698c46bec82f11cabb26c3a878 (patch)
tree8a0b36d94013e7aa141faec0587d11783200bf90 /editcap.c
parent261d223a30834bfaad4ce05dd65daad1a3ea8d4c (diff)
nstime: Support ISO 8601 basic format
Add support in iso8601_to_nstime for the ISO 8601 Basic date/time format that lacks the - and : separators.
Diffstat (limited to 'editcap.c')
-rw-r--r--editcap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/editcap.c b/editcap.c
index 4b33dac0c0..5a31da761e 100644
--- a/editcap.c
+++ b/editcap.c
@@ -1340,7 +1340,7 @@ main(int argc, char *argv[])
nstime_t in_time;
check_startstop = TRUE;
- if ((0 < iso8601_to_nstime(&in_time, ws_optarg)) || (0 < unix_epoch_to_nstime(&in_time, ws_optarg))) {
+ if ((0 < iso8601_to_nstime(&in_time, ws_optarg, ISO8601_DATETIME)) || (0 < unix_epoch_to_nstime(&in_time, ws_optarg))) {
if (opt == 'A') {
nstime_copy(&starttime, &in_time);
have_starttime = TRUE;