]> git.ipfire.org Git - thirdparty/lxc.git/commit
log: fix lxc_unix_epoch_to_utc() 1447/head
authorChristian Brauner <christian.brauner@ubuntu.com>
Mon, 27 Feb 2017 15:02:24 +0000 (16:02 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 27 Feb 2017 15:02:24 +0000 (16:02 +0100)
commit86698d3885b8bf575b4f3d8e99d62b20f0682e5d
tree067ff90d606cb582eaa45ef3317e3efa1473d382
parente3e54165feb1943e6422e91278e97d253f9e01c4
log: fix lxc_unix_epoch_to_utc()

The conversion algorithm used uses a clever trick by letting a year start at 1
March. So we need to add 1 for January and February.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/log.c