Skip to content

Commit

Permalink
Fix make_native typo
Browse files Browse the repository at this point in the history
  • Loading branch information
abondar committed Dec 23, 2020
1 parent 656ecad commit a84895a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Changelog
- Allow passing module objects to `models_paths` param of `Tortoise.init_models()`. (#561)
- Implement `PydanticMeta.backward_relations`. (#536)
- Allow overriding `PydanticMeta` in `PydanticModelCreator`. (#536)
- Fixed make_native typo to make_naive in timezone module

0.16.18
-------
Expand Down
2 changes: 1 addition & 1 deletion tortoise/timezone.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def make_aware(
return value.replace(tzinfo=tz)


def make_native(value: datetime, timezone: Optional[str] = None) -> datetime:
def make_naive(value: datetime, timezone: Optional[str] = None) -> datetime:
"""
Make an aware datetime.datetime naive in a given time zone.
Expand Down

0 comments on commit a84895a

Please sign in to comment.