mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-09 14:20:56 +08:00
+1
-1
@@ -745,7 +745,7 @@ def rss_check():
|
||||
|
||||
|
||||
def localtime() -> datetime:
|
||||
"""" Override for timezone.localtime to deal with naive times and local times"""
|
||||
""" Override for timezone.localtime to deal with naive times and local times"""
|
||||
if settings.USE_TZ:
|
||||
return timezone.localtime()
|
||||
return datetime.now()
|
||||
|
||||
Reference in New Issue
Block a user