You can post like this to avoid the bug.
&[b][/b]lt

Code:
#include <time.h>
#include <stdio.h>
#include <string.h>
void main(void){
    char tmp[80];
    struct tm *ptr;
    time_t lt;
    lt = time(NULL);
    ptr = localtime(&lt);
    printf("%s\n",asctime(ptr) );
    strcpy(tmp,asctime(ptr) );

}