mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
14 lines
241 B
Python
14 lines
241 B
Python
|
from django.utils import timezone
|
||
|
from django.utils.timezone import localtime
|
||
|
|
||
|
__all__ = (
|
||
|
'local_now',
|
||
|
)
|
||
|
|
||
|
|
||
|
def local_now():
|
||
|
"""
|
||
|
Return the current date & time in the system timezone.
|
||
|
"""
|
||
|
return localtime(timezone.now())
|