Re: tai64nlocal not showing localtime
Mariano Absatz <[email protected]>
| Newsgroups | gmane.comp.djb.syslog |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 28 Oct 2004 21:19:42 -0400, Peter Samuel <[email protected]> wrote: > Quoting Mariano Absatz <[email protected]>: > > > Does anyone know why tai64nlocal doesn't get the tz offset right? > > > > It works for me under Fedora Core 1 > > [peters@zebedee]% date; date -u; echo what time is it | multilog t .; > tai64nlocal < current; cat current > Thu Oct 28 21:11:59 EDT 2004 > Fri Oct 29 01:11:59 UTC 2004 > 2004-10-28 21:11:59.598341500 what time is it > @40000000418198e923a9f77c what time is it > > What's more likely is that the values being stored are not correct. Show us an > example of the tai64ntimestamp you are trying to convert. My guess is that the > timezone may not have been set correctly when multilog was started (yes I know > that tai64n doesn't have timezones but if multilog's concept of UTC was off when > it started then you'll get bogus timstamps). > > What do you see when you run tia64nlocal on the value above. When I set my TZ to > yours I see: > > [peters@zebedee]% TZ=America/Argentina/Buenos_Aires tai64nlocal < current > 2004-10-28 22:11:59.598341500 what time is it > [peters@zebedee]% echo @40000000418198e923a9f77c what time is it | > TZ=America/Argentina/Buenos_Aires tai64nlocal > 2004-10-28 22:11:59.598341500 what time is it > > What do you see? if you see the same thing then tai64nlocal is working as > advertised and the timstamps in your data are "wrong". > Nope... timestamps are OK (the first thing I did was to restart multilog)... I copied your 'current' file and I got 'UTC' results :-( [admin@fg:WK 0]# tai64nlocal < current; cat current 2004-10-29 01:11:59.598341500 what time is it @40000000418198e923a9f77c what time is it [admin@fg:WK 0]# TZ=America/Argentina/Buenos_Aires tai64nlocal < current 2004-10-29 01:11:59.598341500 what time is it [admin@fg:WK 0]# echo @40000000418198e923a9f77c what time is it | TZ=America/Argentina/Buenos_Aires tai64nlocal 2004-10-29 01:11:59.598341500 what time is it -- Mariano Absatz - El Baby el (dot) baby (AT) gmail (dot) com el (punto) baby (ARROBA:@) gmail (punto) com