Skip to content

Commit

Permalink
[iphb] Update hardcoded minimum system time. JB#40772
Browse files Browse the repository at this point in the history
When DSME is unable to find any file based time stamps that define the
minimum system time to use, a hardcoded value is used. This has not been
updated in years.

Use "2018-01-01 12:00:00 UTC" as minimum sane system time limit.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
  • Loading branch information
spiiroin committed Jan 15, 2018
1 parent 3219ed4 commit 9e315ef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/iphb.c
Expand Up @@ -3115,14 +3115,14 @@ static time_t mintime_fetch(void)
{
struct tm tm =
{
// 2013-12-01 12:00:00 UTC
// 2018-01-01 12:00:00 UTC
.tm_sec = 0,
.tm_min = 0,
.tm_hour = 12,

.tm_mday = 10 - 0,
.tm_mon = 12 - 1,
.tm_year = 2013 - 1900,
.tm_mday = 1 - 0,
.tm_mon = 1 - 1,
.tm_year = 2018 - 1900,

.tm_wday = -1,
.tm_yday = -1,
Expand Down

0 comments on commit 9e315ef

Please sign in to comment.