malloc needed to give the timestamp an extra byte in memory to remain a string