Skip to content

Commit

Permalink
Merge pull request libical#719 from libical/vcardtime_is_valid_time_fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ksmurchison authored Jun 29, 2024
2 parents b07d6a5 + a3abb88 commit a899918
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libicalvcard/vcardtime.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ int vcardtime_is_valid_time(const struct vcardtimetype t)
return 0;

case -1:
if (t.year != 1 && t.day != 1)
if (t.year != -1 && t.day != -1)
return 0;

days = 31;
Expand Down

0 comments on commit a899918

Please sign in to comment.