Fix tests and correct parsing of timestamps to correct date

A previous fix for #311 resolved the parsing of timestamps on JSON
output shapes, but did not generate the correct date. This change
corrects the UNIX timestamp conversion to generate a correct date
for the timestamp.

References #311