summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2012-06-21 19:05:17 +0200
committerGergely Nagy <algernon@balabit.hu>2012-06-22 15:33:56 +0200
commita74522cc8277b04729cb03af8bf0898eed769418 (patch)
tree17c688f45d48f15c3d09b97802ea6f47c1553dd7 /lib
parent8835222c34bf853f33119eeb49575b8ad71c5c5f (diff)
downloadlibumberlog-a74522cc8277b04729cb03af8bf0898eed769418.tar.gz
libumberlog-a74522cc8277b04729cb03af8bf0898eed769418.tar.xz
libumberlog-a74522cc8277b04729cb03af8bf0898eed769418.zip
Fix timestamp formatting
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/umberlog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/umberlog.c b/lib/umberlog.c
index fd925e9..0f20549 100644
--- a/lib/umberlog.c
+++ b/lib/umberlog.c
@@ -317,7 +317,7 @@ _ul_json_append_timestamp (ul_buffer_t *buffer)
strftime (stamp, sizeof (stamp), "%FT%T", tm);
strftime (zone, sizeof (zone), "%z", tm);
- return _ul_json_append (buffer, "timestamp", "%s.%lu%s",
+ return _ul_json_append (buffer, "timestamp", "%s.%09lu%s",
stamp, ts.tv_nsec, zone,
NULL);
}