- Timestamp:
- Aug 1, 2011, 11:28:43 PM (12 years ago)
- Children:
- 2e42098
- Parents:
- 9078f69
- git-author:
- David Benjamin <davidben@mit.edu> (08/01/11 02:03:32)
- git-committer:
- David Benjamin <davidben@mit.edu> (08/01/11 23:28:43)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
message.c
rb9517cf r0071c88 43 43 /* save the time */ 44 44 m->time = time(NULL); 45 m->timestr = owl_util_time_to_timestr(localtime(&m->time)); 45 m->timestr = g_strdup(ctime(&m->time)); 46 m->timestr[strlen(m->timestr)-1] = '\0'; 46 47 47 48 m->fmtext = NULL; … … 344 345 if (m->timestr) return(m->timestr); 345 346 return(""); 347 } 348 349 CALLER_OWN char *owl_message_format_time(const owl_message *m) 350 { 351 return owl_util_format_time(localtime(&m->time)); 346 352 } 347 353 … … 793 799 if (m->timestr) g_free(m->timestr); 794 800 m->time = n->z_time.tv_sec; 795 m->timestr = owl_util_time_to_timestr(localtime(&m->time)); 801 m->timestr = g_strdup(ctime(&m->time)); 802 m->timestr[strlen(m->timestr)-1] = '\0'; 796 803 797 804 /* set other info */
Note: See TracChangeset
for help on using the changeset viewer.