From 86630effcfd8e1aee71e11a79937714de6379757 Mon Sep 17 00:00:00 2001 From: Willem Melching Date: Wed, 30 Jun 2021 12:18:53 +0200 Subject: [PATCH] bump date in time_valid check --- selfdrive/common/util.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/common/util.cc b/selfdrive/common/util.cc index 777e047c6a..78f9e409f9 100644 --- a/selfdrive/common/util.cc +++ b/selfdrive/common/util.cc @@ -172,7 +172,7 @@ struct tm get_time() { bool time_valid(struct tm sys_time) { int year = 1900 + sys_time.tm_year; int month = 1 + sys_time.tm_mon; - return (year > 2020) || (year == 2020 && month >= 10); + return (year > 2021) || (year == 2021 && month >= 6); } } // namespace util