Project

General

Profile

Actions

Bug #14862

closed

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

Added by Chao Zhao about 8 years ago. Updated about 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
jewel
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

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.

round_to_hour may be called by recalc_round_timestamp(ts) in rgw/rgw_log.cc:UsageLogger.

When system timezone setting is not UTC, the rgw_usage_log_entry will set wrong timestamp and epoch.


Related issues 2 (0 open2 closed)

Has duplicate Ceph - Bug #17200: utime.h: fix timezone issue in round_to_* funcs. DuplicateLoïc Dachary09/02/2016

Actions
Copied to Ceph - Backport #17583: jewel: utime.h: fix timezone issue in round_to_* funcs. ResolvedNathan CutlerActions
Actions #2

Updated by Nathan Cutler about 8 years ago

  • Status changed from New to Fix Under Review
Actions #3

Updated by Nathan Cutler almost 8 years ago

  • Status changed from Fix Under Review to Resolved
Actions #4

Updated by Nathan Cutler over 7 years ago

  • Status changed from Resolved to Pending Backport
  • Backport set to jewel
Actions #5

Updated by Nathan Cutler over 7 years ago

  • Has duplicate Bug #17200: utime.h: fix timezone issue in round_to_* funcs. added
Actions #6

Updated by Nathan Cutler over 7 years ago

  • Copied to Backport #17583: jewel: utime.h: fix timezone issue in round_to_* funcs. added
Actions #7

Updated by Nathan Cutler about 7 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF