This method is supposed to store the author, content, and date of a post. When I run it, I get a future or past date instead of the current date. If I replace newPost->date = "now" with newPost->date = "&now," I get a warning that I should use "&" before the now. What should I do to fix it?
int make_post(const User *author, User *target, char *contents) {
    if (!author || !target) {
        return 2;
    }

    int areFriends = 0;
    for (int i = 0; i < MAX_FRIENDS; i++) {
        if (target->friends[i] == author) {
            areFriends = 1;
            break;
        }
    }

    if (!areFriends) {
        return 1;
    }

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

}