int make_post(const User *author, User *target, char *contents) {
    // check if users exist
    if (author == NULL || target == NULL){
        return 2;
    }
    
    // check if they are friends
    int isFriend = 0;
    for (int i = 0; i < MAX_FRIENDS; i++){
        if (author->friends[i] == target){
            isFriend = 1;
            break;
        }
    }

    if (isFriend == 0){
        return 1;
    }

    // create new post
    Post* newPost = malloc(sizeof(Post));
    newPost->contents = contents;
    strncpy(newPost->author, author->name, MAX_NAME);
    time_t now;
    time(&now);
    newPost->date = &now;

    // insert the new post to the front of the list for the target user
    newPost->next = target->first_post;
    target->first_post = newPost;
    return 0;

}

Set the time of the post to the current time using time()