The input pointer to the number of seconds since the Epoch is either missing or points to a negative value.
Give gmtime() a valid pointer as input.
JrEdcGmtmEoverflow01