RE: logging gmtime or localtime
"Oded Arbel" <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
It's set in a comilation time configuration using ./configure --enable-localtime. you have to recompile with this option to get LOCAL TIME behaviour. -- Oded Arbel m-Wise Inc. [email protected] (972)-67-340014 (972)-9-9581711 (ext: 116) ::.. In the depth of winter, I finally learned that within me there lay an invincible summer. -- Albert Camus > -----Original Message----- > From: Alan McNatty [mailto:[email protected]] > Sent: Tuesday, May 14, 2002 4:36 AM > To: Kannel Dev > Subject: logging gmtime or localtime > > > Hello, > > My Kannel logs have everything in gmtime not localtime which is > confusing things a bit (I've only noticed this recently). > > I noticed in the code that (what I think) sets the log time via gmtime > or localtime call is the conditional chunk below from log.c in /gwlib. > Only thing is I can't find any other reference to > LOG_TIMESTAMP_LOCALTIME. > > Can anyone shed some light on how this is suppose to work (is > something > breaking or not being set in configure stage?). > > Cheers, > Alan > > -- gwlib/log.c: format() lines 186-190 -- > > #if LOG_TIMESTAMP_LOCALTIME > tm = gw_localtime(t); > #else > tm = gw_gmtime(t); > #endif > > > > -- > Alan McNatty -- Catalyst IT Ltd -- http://www.catalyst.net.nz > Level 2, 150-154 Willis St, PO Box 11-053, Wellington, NZ > Mob: +64 21-312136, DDI: +64 4 9167203, Office: +64 4 4992267 > > ... error accessing whit > Segmentation fault (core dumped) > >