On Thu, Jan 29, 2015 at 9:48 AM, Rainer Gerhards <[email protected]>
wrote:

> 2015-01-29 8:46 GMT+01:00 Radu Gheorghe <[email protected]>:
> [...]
> > 2015-01-27T16:17:57Z
> >
> > And you can output everything except that Z (or it may be +00:00, I don't
> > remember) and append a hardcoded timezone (like -05:00 or something)
> > directly in the template.
> >
> > Ugly? You bet! But maybe less ugly that using something else just for
> > timestamp changing. Though a cleaner method could be to add this
> > functionality to rsyslog.
> >
>
> I would love to if someone could point me at a method that doesn't mean
> duplicating tenthousands of operating system code lines...


Aha, I think I understand what you're saying (and your previous Email). But
let me double-check first :)

Say rsyslog receives a timestamp with no timezone. And in the config I say
that my timezone is "Europe/Bucharest" or something else from
/usr/share/zoneinfo/. There's no easy way to tell that this is GMT+03:00
right now and add it to a rfc-3339 timestamp?

Because that sounds quite complicated. I'm such a noob, all I can say is I
found this on the Internet and I have no idea if it helps or not:
http://stackoverflow.com/questions/13804095/get-the-time-zone-gmt-offset-in-c

On the other hand, if I say "+03:00" in my config, wouldn't be easy to just
do a string replace somewhere and come up with a GMT+3 timestamp? Of course
this implies changing the config for every DST change.

Not sure if this helps...

Best regards,
Radu

P.S. I hate time zones. And DST. DST more than timezones.
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to