[#2212] CID25912:

Changed localTime to be TIME_LEN in length
[#2212] CID26279:

Changed localTime to be TIME_LEN in length
[#2212] CID25621:

Changed strncpy to snprintf