switch from ctime to strftime

ctime injects a newline and null character into the string, big no no