Fix typo in comment

This commit is contained in:
Michael Hanselmann 2016-01-07 11:05:28 +01:00
parent 19afaa813c
commit d668901df4
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@ def to_localtime(ts):
def parse_timestamp(timestamp):
"""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)
else:
return datetime.strptime(timestamp, '%Y-%m-%dT%H:%M:%S').replace(tzinfo=timezone.utc)