Commit 4627854e authored by Claes's avatar Claes Committed by Esteban Blanc

Time fix for 32-bit and year > 2037

parent 791248ac
...@@ -1023,6 +1023,8 @@ pwr_tStatus time_AsciiToA(const char* tstr, pwr_tTime* ts) ...@@ -1023,6 +1023,8 @@ pwr_tStatus time_AsciiToA(const char* tstr, pwr_tTime* ts)
return sts; return sts;
ts->tv_sec = mktime(&tmpTm); ts->tv_sec = mktime(&tmpTm);
if (ts->tv_sec == -1)
return TIME__RANGE;
ts->tv_nsec = tmphs * 10000000; ts->tv_nsec = tmphs * 10000000;
return TIME__SUCCESS; return TIME__SUCCESS;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment