Skip to content

Commit

Permalink
Fixed house transfer date not being parsed properly.
Browse files Browse the repository at this point in the history
  • Loading branch information
Galarzaa90 committed May 12, 2021
1 parent 3aa4a12 commit 841eef6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ Changelog
Due to this library relying on external content, older versions are not guaranteed to work.
Try to always use the latest version.

.. v4.1.3
4.1.3 (2021-05-12)
==================
- Fixed house transfer date not being parsed properly.


.. v4.1.2
4.1.2 (2021-04-27)
Expand Down
2 changes: 1 addition & 1 deletion tibiapy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '4.1.2'
__version__ = '4.1.3'
__author__ = 'Allan Galarza'

import logging
Expand Down
2 changes: 1 addition & 1 deletion tibiapy/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def parse_tibia_datetime(datetime_str) -> Optional[datetime.datetime]:
The represented datetime, in UTC (timezone aware).
"""
try:
datetime_str = datetime_str.replace(",", "").replace(" ", " ")
datetime_str = datetime_str.replace(",", "").replace(" ", " ").strip()
# Extracting timezone
tz = datetime_str[-4:].strip()

Expand Down

0 comments on commit 841eef6

Please sign in to comment.