[Freeswitch-svn] [commit] r2438 - freeswitch/trunk/src
Freeswitch SVN
mikej at freeswitch.org
Tue Aug 29 19:52:46 EDT 2006
Author: mikej
Date: Tue Aug 29 19:52:45 2006
New Revision: 2438
Modified:
freeswitch/trunk/src/switch_event.c
Log:
change date format so output of show channels does not have another comma in a comma sep list.
Modified: freeswitch/trunk/src/switch_event.c
==============================================================================
--- freeswitch/trunk/src/switch_event.c (original)
+++ freeswitch/trunk/src/switch_event.c Tue Aug 29 19:52:45 2006
@@ -671,7 +671,7 @@
switch_event_add_header(*event, SWITCH_STACK_TOP, "Event-Calling-Function", func);
switch_event_add_header(*event, SWITCH_STACK_TOP, "Event-Calling-File", switch_cut_path(file));
switch_time_exp_lt(&tm, switch_time_now());
- switch_strftime(date, &retsize, sizeof(date), "%a, %d-%b-%Y %X", &tm);
+ switch_strftime(date, &retsize, sizeof(date), "%Y-%m-%d %T", &tm);
switch_event_add_header(*event, SWITCH_STACK_TOP, "Event-Date-Local", date);
switch_rfc822_date(date, switch_time_now());
switch_event_add_header(*event, SWITCH_STACK_TOP, "Event-Date-GMT", date);
More information about the Freeswitch-svn
mailing list