diff options
author | John Thacker <johnthacker@gmail.com> | 2021-11-30 01:04:07 -0500 |
---|---|---|
committer | John Thacker <johnthacker@gmail.com> | 2021-12-01 20:50:37 -0500 |
commit | cf0ecc4fe155d0698c46bec82f11cabb26c3a878 (patch) | |
tree | 8a0b36d94013e7aa141faec0587d11783200bf90 /editcap.c | |
parent | 261d223a30834bfaad4ce05dd65daad1a3ea8d4c (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |