Fix parsing of anchor-relative time in update schedule
Commit 16b811d4
(v4.3.13) broke parse_time().
This commit is contained in:
parent
e8f82d34a7
commit
bf2fd6cb82
1 changed files with 1 additions and 1 deletions
|
@ -217,7 +217,7 @@ parse_time(time_t *t, char *s, time_t *anchor)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tm.tm_mday == 0) {
|
if (tm.tm_mday == -1) {
|
||||||
/* relative to anchor */
|
/* relative to anchor */
|
||||||
nexttm = *localtime(anchor);
|
nexttm = *localtime(anchor);
|
||||||
if (tm.tm_hour >= 0) {
|
if (tm.tm_hour >= 0) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue