Used 'tm*' instead of 'tm' for storing time
This commit is contained in:
@@ -22,10 +22,10 @@ Message* new_message(char* string, User* from, User* to) {
|
||||
// *(new_message->recipient) = *to;
|
||||
|
||||
time_t rawtime;
|
||||
struct tm timeinfo;
|
||||
struct tm* timeinfo;
|
||||
|
||||
time(&rawtime);
|
||||
timeinfo = *localtime(&rawtime);
|
||||
timeinfo = localtime(&rawtime);
|
||||
|
||||
new_message->timeinfo = timeinfo;
|
||||
|
||||
|
Reference in New Issue
Block a user