From c5a935eb8ecae23b22848b26f6c9c40a70ffcb10 Mon Sep 17 00:00:00 2001 From: BennyR Date: Tue, 17 Mar 2015 14:07:33 +0100 Subject: [PATCH] Fixed expired date calculation We have to get a new license!!! --- cerevoice_tts/src/CerevoiceTts.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cerevoice_tts/src/CerevoiceTts.cpp b/cerevoice_tts/src/CerevoiceTts.cpp index caee21a..c283aa8 100644 --- a/cerevoice_tts/src/CerevoiceTts.cpp +++ b/cerevoice_tts/src/CerevoiceTts.cpp @@ -151,7 +151,7 @@ bool CerevoiceTts::init() int month = boost::lexical_cast(line.substr(4, 2)); int day = boost::lexical_cast(line.substr(6, 2)); - struct std::tm expires = {0, 0, 0, day, month, year - 1900}; + struct std::tm expires = {0, 0, 0, day, month - 1, year - 1900}; std::time_t now = time(0); std::time_t expires_time = std::mktime(&expires);