int make_post(const User *author, User *target, char *contents) {
    if (author == NULL || target == NULL){
        return 2;
    }

    else if (are_friends(author, target) == 0){
        return 1;
    }

    // creating a new post
    Post *new_post = malloc(sizeof(Post));
    strcpy(new_post->author, author->name);
    new_post->contents = contents; 
    new_post->date = time(NULL);
    new_post->next = target->first_post;
    target->first_post = new_post;

    return 0;
}

how do i make new_post->date the current time