Skip to content

Commit

Permalink
Fixed expired date calculation
Browse files Browse the repository at this point in the history
We have to get a new license!!!
  • Loading branch information
BennyRe committed Mar 17, 2015
1 parent 43db2c1 commit c5a935e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cerevoice_tts/src/CerevoiceTts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ bool CerevoiceTts::init()
int month = boost::lexical_cast<int>(line.substr(4, 2));
int day = boost::lexical_cast<int>(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);

Expand Down

0 comments on commit c5a935e

Please sign in to comment.