the time is not printed properly from line 71
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);

    // allocate and set time
    newPost->date = (time_t*)malloc(sizeof(time_t));
    time_t now = time(NULL);
    time(&now);
    
    newPost->date = &now;
    //printf("%s\n", ctime(newPost->date));
    // 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;

}

int print_user(const User *user) {
    if (user == NULL){
        return 1;
    }
    
    // print profile pic
    char currChar;
    FILE *fp = fopen(user->profile_pic, "r");
    if (fp != NULL){
        while((fscanf(fp, "%c", &currChar)) != EOF){
            printf("%c", currChar);
        }
        printf("\n");  
        fclose(fp);
    }
    printf("Name: %s\n", user->name);
    printf("------------------------------------------\n");

    //print friends
    printf("Friends:\n");
    for (int i = 0; i < MAX_FRIENDS; i++){
        if (user->friends[i] != NULL){
            printf("%s\n", user->friends[i]->name);
        }
    }
    printf("------------------------------------------\n");
    printf("Posts:\n");

    // print posts
    Post* currPost = user->first_post;
    while (currPost != NULL){
        printf("From: %s\n", currPost->author);
        printf("Date: %s\n", ctime(currPost->date));
        printf("%s\n", currPost->contents);
        currPost = currPost->next;

        // padding prints
        if (currPost != NULL){
            printf("\n");
            printf("===\n");
            printf("\n");
        }
    }
    printf("------------------------------------------\n");
    
    return 0;
}
