]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
utime.h: fix timezone issue in round_to_* funcs. 7789/head
authorZhao Chao <zhaochao1984@gmail.com>
Thu, 25 Feb 2016 03:17:18 +0000 (11:17 +0800)
committerZhao Chao <zhaochao1984@gmail.com>
Mon, 29 Feb 2016 02:43:43 +0000 (10:43 +0800)
commitc914f28d6e79726b84261884c37b89d7c6b34f21
treeb29c88413a8e142d1b6e76b1b0908732308872eb
parent1c4ccfe3c4be1cd45c285d084c70954cd1f3b3e7
utime.h: fix timezone issue in round_to_* funcs.

gmtime_r converts local time to UTC, however mktime only takes an
argument as local time. Use localtime_r instead of gmtime_r will fix.

Fixes: #14862
Reported-by: isyippee <yippee_liu@163.com>
Signed-off-by: Zhao Chao <zhaochao1984@gmail.com>
src/include/utime.h