MCPcopy
hub / github.com/django/django / _to_naive

Function _to_naive

django/db/models/fields/__init__.py:1381–1384  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

1379
1380
1381def _to_naive(value):
1382 if timezone.is_aware(value):
1383 value = timezone.make_naive(value, datetime.UTC)
1384 return value
1385
1386
1387def _get_naive_now():

Callers 3

_get_naive_nowFunction · 0.85
_check_if_value_fixedMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected