time_t *post_time = malloc(sizeof(time_t));
    time_t actual_time = time(post_time);
    
    Post *new_post = malloc(sizeof(Post));
    strcpy(new_post->author, author->name);
    strcpy(new_post->contents, contents);
    strcpy(new_post->date, ctime(&actual_time));
assign the current time to the post->date