Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

utime.h: fix timezone issue in round_to_* funcs. #10

Conversation

zhaochao
Copy link

@zhaochao zhaochao commented Mar 8, 2016

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: ceph#14862

Reported-by: isyippee yippee_liu@163.com
Signed-off-by: Zhao Chao zhaochao1984@gmail.com
(cherry picked from commit c914f28)

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: ceph#14862

Reported-by: isyippee <yippee_liu@163.com>
Signed-off-by: Zhao Chao <zhaochao1984@gmail.com>
(cherry picked from commit c914f28)
@zhaochao
Copy link
Author

zhaochao commented Mar 8, 2016

Redmine: 6275

mathslinux added a commit that referenced this pull request Mar 8, 2016
…e-in-round-to-funcs

utime.h: fix timezone issue in round_to_* funcs.
@mathslinux mathslinux merged commit 7cf4844 into eayunstack:eayunobs Mar 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants