def localnow(): """ Get the current datetime in the local timezone for the user (timezone set by timezone.activate()).""" return timezone.localtime(utcnow(), timezone=timezone.get_current_timezone())