Check out
http://ipn.caida.org/archives/cflowd/
I searched for this before and found a patch that converts to local time.
http://ipn.caida.org/archives/cflowd/0568.html
Here is the patch from the posting.
*** CflowdServer.cc.orig Thu Sep 2 10:35:23 1999
--- CflowdServer.cc Thu Jan 6 18:18:49 2000
***************
*** 546,552 ****
bool rc = true;
ostrstream outdirname, outfilename;
time_t now = time((time_t *)NULL);
! struct tm *tmGmtNow = gmtime(&now);
struct in_addr addrIn;
addrIn.s_addr = cflowdCisco.IpAddress();
--- 546,552 ----
bool rc = true;
ostrstream outdirname, outfilename;
time_t now = time((time_t *)NULL);
! struct tm *tmGmtNow = localtime(&now);
struct in_addr addrIn;
addrIn.s_addr = cflowdCisco.IpAddress();
- Jeffrey
Claus Rugani Topke wrote:
>
> Hi,
>
> "cfdcollect" writes the arts file in GMT time, Why ?
> Any ideia ?
>
> Any comments will be great...
>
> Claus
>
> ********************************************
> *PS -
> Line 557 in "cflowd-2-1-a9/apps/cfdcollect/CflowdServer.cc":
> struct tm *tmGmtNow = gmtime(&now);
>
> Line 572-577 in "cflowd-2-1-a9/apps/cfdcollect/CflowdServer.cc":
> outfilename << outdirname.str() << "/" << fileprefix << "."
> << setfill('0')
> << setw(4) << tmGmtNow->tm_year + 1900
> << setw(2) << tmGmtNow->tm_mon + 1
> << setw(2) << tmGmtNow->tm_mday
> << ends;
> --
> cflowd mailing list
> cflowd@caida.org
-- Yahoo Network Engineering email: jeffrey@papen.com beep: page-jeffrey@papen.com work: 408-616-3897 fax: 408-530-5307 cell: 650-580-2684 page: 408-619-0572 Yahoo Messenger ID: jpapen -- cflowd mailing list cflowd@caida.org
This archive was generated by hypermail 2b29 : Mon Oct 02 2000 - 14:48:37 PDT