timestamp format string unware of timezone for unix epic time in utils

Bug #1341415 reported by Edward
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Object Storage (swift)
Fix Released
Undecided
Unassigned

Bug Description

The last_modified_date_to_timestamp function of swift/common/utils.py failed the test case test_last_modified_date_to_timestamp.

Here's a python snippet to verify it.

Timestamp(datetime.datetime.strptime('1970-01-01T00:00:00.000000', '%Y-%m-%dT%H:%M:%S.%f').strftime('%s.%f'))
-000028800.00000_0000000000000000

I guess it maybe caused by a different local timezone since mine is +08:00.

Edward (zhang-hare)
description: updated
summary: - incorrect strftime format string in utils
+ incorrect timestamp format string for unix epic time in utils
Edward (zhang-hare)
description: updated
Edward (zhang-hare)
description: updated
summary: - incorrect timestamp format string for unix epic time in utils
+ timestamp format string unware of timezone for unix epic time in utils
Edward (zhang-hare)
Changed in swift:
assignee: nobody → Edward (zhang-hare)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to swift (master)

Fix proposed to branch: master
Review: https://review.openstack.org/106709

Changed in swift:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on swift (master)

Change abandoned by Samuel Merritt (<email address hidden>) on branch: master
Review: https://review.openstack.org/106709
Reason: author says abandoning this patch set is the right thing to do

if I'm wrong, there's a "Restore Change" button that'll undo this; please push it if you want this change back

Revision history for this message
Tim Burke (1-tim-z) wrote :
Changed in swift:
status: In Progress → Fix Released
assignee: Edward (zhang-hare) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.