Re: tai64nlocal not showing localtime

Peter Samuel <[email protected]>
Newsgroups gmane.comp.djb.syslog
Message-ID <[email protected]>
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".

-- 
Regards 
Peter 
---------- 
Peter Samuel                                [email protected] 
+1 613 729 7964
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.