Fix for date parsing when no year is given
This commit is contained in:
parent
2919710a82
commit
d176abf625
1 changed files with 1 additions and 1 deletions
|
|
@ -224,7 +224,7 @@ namespace {
|
|||
when = date_t(year ? *year : CURRENT_DATE().year(),
|
||||
when.month(), when.day());
|
||||
|
||||
if (when.month() > CURRENT_DATE().month())
|
||||
if (! year && when.month() > CURRENT_DATE().month())
|
||||
when -= gregorian::years(1);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue