old_contents: # -*- coding: utf-8 -*-
  """ Global timezone aware functions. """
  
  import datetime as pydatetime
  import humanize.time as human_time
  from django.conf import settings
  from django.utils.timezone import (is_aware as dj_is_aware,
                                     is_naive as dj_is_naive,
                                     make_aware, utc,
                                     now as dj_now)
  
  # ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• Local aliases
  
  dt_combine       = pydatetime.datetime.combine
  dt_fromtimestamp = pydatetime.datetime.fromtimestamp
  
  
  # ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• Naive aliases
  
  
  today     = pydatetime.date.today
  timedelta = pydatetime.timedelta
  
  naturaltime  = human_time.naturaltime
  naturaldelta = human_time.naturaldelta
  
  # ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• Aware aliases
  
  
  if settings.USE_TZ:
      now      = dj_now
      ftstamp  = lambda x: make_aware(dt_fromtimestamp(x), utc)
      combine  = lambda x, y: make_aware(dt_combine(x, y), utc)
      time     = lambda *args: pydatetime.time(*args, tzinfo=utc)
      datetime = lambda *args: pydatetime.datetime(*args, tzinfo=utc)
  
  else:
      now      = pydatetime.datetime.now
      ftstamp  = dt_fromtimestamp
      combine  = dt_combine
      time     = pydatetime.time
      datetime = pydatetime.datetime
  
  
  def is_naive(*args, **kwargs):
      try:
          return dj_is_naive(*args, **kwargs)
  
      except AttributeError:
          # workaround http://dev.1flow.net/webapps/1flow/group/3297/
          return True
  
  
  def is_aware(*args, **kwargs):
      try:
          return dj_is_aware(*args, **kwargs)
  
      except AttributeError:
          # workaround http://dev.1flow.net/webapps/1flow/group/3297/
          return False
  
  # ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• functions
  
  
  def until_tomorrow_delta(time_of_tomorrow=None):
      """ This should probably go to ``oneflow.base.something``. """
  
      tomorrow = today() + timedelta(days=1)
  
      if time_of_tomorrow is None:
          time_of_tomorrow = time(0, 0, 0)
  
      # don't use our combine(), time_of_tomorrow is already TZ aware.
      return dt_combine(tomorrow, time_of_tomorrow) - now()
  
  
  __all__ = ('today', 'timedelta', 'naturaltime', 'naturaldelta',
             'now', 'ftstamp', 'combine', 'time', 'datetime',
             'is_aware', 'is_naive',
             'until_tomorrow_delta', )
  
new_contents: # -*- coding: utf-8 -*-
  """ Global timezone aware functions. """
  
  import datetime as pydatetime
  import humanize.time as human_time
  from django.conf import settings
  from django.utils.timezone import (is_aware, is_naive, # NOQA
                                     make_aware, utc,
                                     now as dj_now)
  
  
  # ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• Local aliases
  
  
  dt_combine       = pydatetime.datetime.combine
  dt_fromtimestamp = pydatetime.datetime.fromtimestamp
  
  
  # ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• Naive aliases
  
  
  today     = pydatetime.date.today
  timedelta = pydatetime.timedelta
  
  naturaltime  = human_time.naturaltime
  naturaldelta = human_time.naturaldelta
  
  
  # ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• Aware aliases
  
  
  if settings.USE_TZ:
      now      = dj_now
      ftstamp  = lambda x: make_aware(dt_fromtimestamp(x), utc)
      combine  = lambda x, y: make_aware(dt_combine(x, y), utc)
      time     = lambda *args: pydatetime.time(*args, tzinfo=utc)
      datetime = lambda *args: pydatetime.datetime(*args, tzinfo=utc)
  
  else:
      now      = pydatetime.datetime.now
      ftstamp  = dt_fromtimestamp
      combine  = dt_combine
      time     = pydatetime.time
      datetime = pydatetime.datetime
  
  
  # ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• functions
  
  
  def until_tomorrow_delta(time_of_tomorrow=None):
      """ This should probably go to ``oneflow.base.something``. """
  
      tomorrow = today() + timedelta(days=1)
  
      if time_of_tomorrow is None:
          time_of_tomorrow = time(0, 0, 0)
  
      # don't use our combine(), time_of_tomorrow is already TZ aware.
      return dt_combine(tomorrow, time_of_tomorrow) - now()
  
  
  __all__ = ('today', 'timedelta', 'naturaltime', 'naturaldelta',
             'now', 'ftstamp', 'combine', 'time', 'datetime',
             'is_aware', 'is_naive',
             'until_tomorrow_delta', )
  
subject: Revert the is_{naive,aware} part of 1730617c3a8918fbdfd43e0b65bf78b75ad38daf, I had misread the problem: we had a *date* (not a date time) in place of a date time.