Browse Source

- minor fix, use constant

development
Andreas Romeyke 10 months ago
parent
commit
28253d92a0
  1. 2
      src/tagrules/check_datetime.c

2
src/tagrules/check_datetime.c

@ -90,7 +90,7 @@ ret_t check_datetime(ctiff_t * ctif ) {
if (0 == r) {
if (6 == sscanf(datetime, "%04d:%02d:%02d%02d:%02d:%02d", &year, &month, &day, &hour, &min, &sec)) {
if (0 == test_plausibility(&year, &month, &day, &hour, &min, &sec)) {
ret.returncode=0;
ret.returncode= is_valid;
} else {
ret.returncode = tagerror_datetime_not_plausible;
}

Loading…
Cancel
Save