fix potential integer overflow when casting from int64_t to time_t
fix potential integer overflow when casting from int64_t to time_t

rhansen/rpstir,rhansen/rpstir,rhansen/rpstir,rhansen/rpstir,rhansen/rpstir