int print_user(const User *user) {
    if (user == NULL){
        return 1;
    }
    
    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;
    return 0;
}

Print user profile and any associated posts. However the time is not printed properly.