why is the date not being printed properly in print_user
typedef struct user {
    char name[MAX_NAME];
    char profile_pic[MAX_NAME];  // This is a *filename*, not the file contents.
    struct post *first_post;
    struct user *friends[MAX_FRIENDS];
    struct user *next;
} User;

typedef struct post {
    char author[MAX_NAME];
    char *contents;
    time_t *date;
    struct post *next;
} Post;

int make_post(const User *author, User *target, char *contents) {
    if((author == NULL) || (target == NULL)){
        return 2;
    } else {
        int friends = 0;
        for(int i = 0; i < MAX_FRIENDS; i++){
            if((author->friends)[i] == target){
                friends = 1;
            }
        }
        if(friends == 0){
            return 1;
        }

        Post *new_post = calloc(1, sizeof(Post));
        strcpy(new_post->author, author->name);
        new_post->contents = contents;
        time_t post_time = time(NULL);
        new_post->date = &post_time;

        new_post->next = target->first_post;
        target->first_post = new_post;

        return 0;
    }
}

int print_user(const User *user) {
    if(user == NULL){
        return 1;
    } else {
        if(user->profile_pic != NULL){
            ;
            //display pp
        }
        printf("%s%s\n", "Name: ", user->name);
        printf("%s\n", "------------------------------------------");
        printf("%s\n", "Friends:");
        for(int i = 0; i < MAX_FRIENDS; i++){
            if((user->friends)[i] != NULL){
                printf("%s\n", ((user->friends)[i])->name);
            }
        }
        printf("%s\n", "------------------------------------------");
        printf("%s\n", "Posts:");
        if(user->first_post == NULL){
            ;
        } else {
            Post curr_post = (user->first_post)[0];
            while(curr_post.next != NULL){
                printf("%s%s\n", "From: ", curr_post.author);
                printf("%s%s\n\n", "Date: ", ctime(curr_post.date));
                printf("%s\n", curr_post.contents);
                printf("\n%s\n\n", "===");
                curr_post = *(curr_post.next);
            }
            printf("%s%s\n", "From: ", curr_post.author);
            printf("%s%s\n\n", "Date: ", ctime(curr_post.date));
            printf("%s\n", curr_post.contents);

        }
        printf("%s\n", "------------------------------------------");
        return 0;
    }
}