[systemd-devel] [PATCH] journalctl: make --utc work everywhere

Jan Synacek jsynacek at redhat.com
Fri Oct 3 00:51:32 PDT 2014


The --utc option was introduced by commit
9fd290443f5f99fca0dcd4216b1de70f7d3b8db1.
Howerver, the implementation was incomplete.

This patch makes --utc work with --verify, --list-boots. Also, first line of
output of journalctl now correctly handles --utc as well. The only option I
didn't patch was --header, since it required quite a lot of API additions just
to propagate the flag. If it's required, I'll rewrite the patch to handle --header
as well.

Jan Synacek (1):
  journalctl: make --utc work everywhere

 src/journal/journalctl.c | 14 +++++++-------
 src/shared/logs-show.c   |  2 +-
 src/shared/time-util.c   | 19 +++++++++++++++----
 src/shared/time-util.h   |  3 ++-
 4 files changed, 25 insertions(+), 13 deletions(-)

-- 
1.9.3



More information about the systemd-devel mailing list