Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
1381
def
_to_naive(value):
1382
if
timezone.is_aware(value):
1383
value = timezone.make_naive(value, datetime.UTC)
1384
return
value
1385
1386
1387
def
_get_naive_now():
Callers
3
_get_naive_now
Function · 0.85
_check_if_value_fixed
Method · 0.85
_check_fix_default_value
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected