Re: [systemd-devel] [PATCH] journalctl: add --utc option

2014-10-06 Thread Lennart Poettering
On Thu, 02.10.14 12:51, Josh Triplett (j...@joshtriplett.org) wrote: On Thu, Oct 02, 2014 at 09:11:39PM +0200, Lennart Poettering wrote: On Thu, 02.10.14 11:56, Josh Triplett (j...@joshtriplett.org) wrote: On Thu, Oct 02, 2014 at 09:36:46AM +0200, Jan Synacek wrote: Introduce option

Re: [systemd-devel] [PATCH] journalctl: add --utc option

2014-10-02 Thread Lennart Poettering
On Thu, 02.10.14 09:36, Jan Synacek (jsyna...@redhat.com) wrote: Introduce option to display time in UTC. Looks generally OK. struct tm tm; +struct tm *(*gettime_r)(const time_t *, struct tm *); This isn't particularly beautiful and easy to grok, but

Re: [systemd-devel] [PATCH] journalctl: add --utc option

2014-10-02 Thread Josh Triplett
On Thu, Oct 02, 2014 at 09:36:46AM +0200, Jan Synacek wrote: Introduce option to display time in UTC. Does TZ=UTC journalctl not do the right thing? A quick test here suggests that it does. That seems preferable to teaching individual tools to special-case UTC. - Josh Triplett

Re: [systemd-devel] [PATCH] journalctl: add --utc option

2014-10-02 Thread Lennart Poettering
On Thu, 02.10.14 11:56, Josh Triplett (j...@joshtriplett.org) wrote: On Thu, Oct 02, 2014 at 09:36:46AM +0200, Jan Synacek wrote: Introduce option to display time in UTC. Does TZ=UTC journalctl not do the right thing? A quick test here suggests that it does. That seems preferable to

Re: [systemd-devel] [PATCH] journalctl: add --utc option

2014-10-02 Thread Josh Triplett
On Thu, Oct 02, 2014 at 09:11:39PM +0200, Lennart Poettering wrote: On Thu, 02.10.14 11:56, Josh Triplett (j...@joshtriplett.org) wrote: On Thu, Oct 02, 2014 at 09:36:46AM +0200, Jan Synacek wrote: Introduce option to display time in UTC. Does TZ=UTC journalctl not do the right thing?