You don't need to convert the timestamp to string format. (I don't want any string functions in toxcore)

Take the timestamp, put it in a uint32_t, htonl that uint32_t then memcpy it in to the beggining of the array, then copy that text char array after it.