@@ -329,7 +329,7 @@ def to_user_timezone(datetime):
329
329
"""Convert a datetime object to the user's timezone. This automatically
330
330
happens on all date formatting unless rebasing is disabled. If you need
331
331
to convert a :class:`datetime.datetime` object at any time to the user's
332
- timezone (as returned by :func:`get_timezone` this function can be used) .
332
+ timezone (as returned by :func:`get_timezone`) this function can be used.
333
333
"""
334
334
if datetime .tzinfo is None :
335
335
datetime = datetime .replace (tzinfo = UTC )
@@ -355,7 +355,7 @@ def format_datetime(datetime=None, format=None, rebase=True):
355
355
time.
356
356
357
357
The format parameter can either be ``'short'``, ``'medium'``,
358
- ``'long'`` or ``'full'`` (in which cause the language's default for
358
+ ``'long'`` or ``'full'`` (in which case the language's default for
359
359
that setting is used, or the default from the :attr:`Babel.date_formats`
360
360
mapping is used) or a format string as documented by Babel.
361
361
@@ -375,7 +375,7 @@ def format_date(date=None, format=None, rebase=True):
375
375
of a :class:`~datetime.datetime` object.
376
376
377
377
The format parameter can either be ``'short'``, ``'medium'``,
378
- ``'long'`` or ``'full'`` (in which cause the language's default for
378
+ ``'long'`` or ``'full'`` (in which case the language's default for
379
379
that setting is used, or the default from the :attr:`Babel.date_formats`
380
380
mapping is used) or a format string as documented by Babel.
381
381
@@ -397,7 +397,7 @@ def format_time(time=None, format=None, rebase=True):
397
397
time.
398
398
399
399
The format parameter can either be ``'short'``, ``'medium'``,
400
- ``'long'`` or ``'full'`` (in which cause the language's default for
400
+ ``'long'`` or ``'full'`` (in which case the language's default for
401
401
that setting is used, or the default from the :attr:`Babel.date_formats`
402
402
mapping is used) or a format string as documented by Babel.
403
403
0 commit comments