Skip to content

Commit

Permalink
docs: remove the note that the converted object is using UTC (it can …
Browse files Browse the repository at this point in the history
…be another tz)
  • Loading branch information
vytas7 committed Oct 13, 2024
1 parent b80e69e commit cc3e0f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion falcon/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -2172,7 +2172,7 @@ def get_param_as_datetime(
The new format is a superset of the old one parsing-wise, however,
the converted :class:`~datetime.datetime` object is now
timezone-aware (using the :attr:`~datetime.timezone.utc` timezone).
timezone-aware.
"""

param_value = self.get_param(name, required=required)
Expand Down
3 changes: 1 addition & 2 deletions falcon/routing/converters.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,7 @@ class DateTimeConverter(BaseConverter):
``'%Y-%m-%dT%H:%M:%SZ'`` to ``'%Y-%m-%dT%H:%M:%S%z'``.
The new format is a superset of the old one parsing-wise, however, the
converted :class:`~datetime.datetime` object is now timezone-aware
(using the :attr:`~datetime.timezone.utc` timezone).
converted :class:`~datetime.datetime` object is now timezone-aware.
"""

__slots__ = ('_format_string',)
Expand Down

0 comments on commit cc3e0f6

Please sign in to comment.