Changeset 85bb19b for message.c


Ignore:
Timestamp:
Jul 23, 2011, 8:09:57 PM (13 years ago)
Author:
GitHub Merge Button <merge-button@github.com>
Parents:
a7fac14 (diff), 11e78d5 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:
Merge 11e78d5550a8ce2849db8c922b6515bc8d8c2616 into a7fac140d17626bc37808cae6b389f3240135903
File:
1 edited

Legend:

Unmodified
Added
Removed
  • message.c

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