Skip to content

Commit

Permalink
Merge pull request #171 from diogomatoschaves/add-tz-end-date
Browse files Browse the repository at this point in the history
Add tzinfo to current date
  • Loading branch information
diogomatoschaves authored Feb 26, 2024
2 parents 6204b7e + ccbf23f commit b00eab4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/sources/binance/extract/_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def get_earliest_missing_date(start_date, symbol, end_date=None):

def convert_date(date):
if date is None:
date = datetime.now()
date = datetime.now(pytz.utc)

pd_date = pd.Timestamp(date).round(CANDLE_SIZES_MAPPER[config_vars.base_candle_size])

Expand Down

0 comments on commit b00eab4

Please sign in to comment.