correct the mistake which timeout

the time's type is time_t(long) ,even though it is  char[20], only four
bytes is used. and I correct get (long) from the str,  used atol