Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • message.c

    r11e78d5 r6500907  
    4646 
    4747  /* save the time */
    48   m->time = time(NULL);
    49   m->timestr = owl_util_time_to_timestr(localtime(&m->time));
     48  m->time=time(NULL);
     49  m->timestr=g_strdup(ctime(&(m->time)));
     50  m->timestr[strlen(m->timestr)-1]='\0';
    5051
    5152  m->fmtext = NULL;
     
    795796  /* save the time, we need to nuke the string saved by message_init */
    796797  if (m->timestr) g_free(m->timestr);
    797   m->time = n->z_time.tv_sec;
    798   m->timestr = owl_util_time_to_timestr(localtime(&m->time));
     798  m->time=n->z_time.tv_sec;
     799  m->timestr=g_strdup(ctime(&(m->time)));
     800  m->timestr[strlen(m->timestr)-1]='\0';
    799801
    800802  /* set other info */
Note: See TracChangeset for help on using the changeset viewer.