1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-24 08:45:13 +00:00

Merge pull request #530 from hansmi/fix-typo

Fix typo in comment
This commit is contained in:
TW 2016-01-07 18:21:11 +01:00
commit 267347ad3f

View file

@ -229,7 +229,7 @@ def to_localtime(ts):
def parse_timestamp(timestamp): def parse_timestamp(timestamp):
"""Parse a ISO 8601 timestamp string""" """Parse a ISO 8601 timestamp string"""
if '.' in timestamp: # microseconds might not be pressent if '.' in timestamp: # microseconds might not be present
return datetime.strptime(timestamp, '%Y-%m-%dT%H:%M:%S.%f').replace(tzinfo=timezone.utc) return datetime.strptime(timestamp, '%Y-%m-%dT%H:%M:%S.%f').replace(tzinfo=timezone.utc)
else: else:
return datetime.strptime(timestamp, '%Y-%m-%dT%H:%M:%S').replace(tzinfo=timezone.utc) return datetime.strptime(timestamp, '%Y-%m-%dT%H:%M:%S').replace(tzinfo=timezone.utc)