Why is it that the date stored in now is not correct?
int make_post(const User *author, User *target, char *contents) {
    if ((author == NULL) || (target == NULL)){
        return 2;
    }

    int author_length = 0;
    int target_length = 0;
    for (int i = 0; i < 10; i++){
        if (author->friends[i] != NULL){
            author_length = author_length + 1;
        }
    }
    for (int i = 0; i < 10; i++){
        if (author->friends[i] != NULL){
            target_length = target_length + 1;
        }
    }
    int are_friends = 0; // are_friends = 1 for no and 0 for yes
    for (int i = 0; i < author_length; i++){
        if (strcmp(target->name, author->friends[i]->name) == 0){
            for (int j = 0; j < target_length; j++){
                if (strcmp(author->name, target->friends[i]->name) == 0){
                    are_friends = 1;
                }
            }
        }   
    }
    if (are_friends == 0){
        return 1;
    }

    Post *new_first_post = malloc(sizeof(Post));
    strcpy(new_first_post->author, author->name);
    new_first_post->contents = contents;
    time_t now = time(NULL);
    new_first_post->date = &now;
    new_first_post->next = target->first_post;
    target->first_post = new_first_post;
    return 0;
}
