mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Bug
- Fix sanity check for the first digit of day in a date. Signed-off-by: Paul Beckingham <paul@beckingham.net>
This commit is contained in:
parent
ebdcccbf41
commit
f656c2024d
1 changed files with 1 additions and 1 deletions
|
@ -748,7 +748,7 @@ bool Nibbler::getDate (const std::string& format, time_t& t)
|
|||
|
||||
case 'd':
|
||||
if (i + 2 <= _length &&
|
||||
isdigit (_input[i + 1]) &&
|
||||
isdigit (_input[i + 0]) &&
|
||||
isdigit (_input[i + 1]))
|
||||
{
|
||||
day = atoi (_input.substr (i, 2).c_str ());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue