def format_system_datetime(datetime=None, rebase=True):

  from kay.utils import to_local_timezone
  if rebase:
    datetime = to_local_timezone(datetime)
  return u'%d-%02d-%02d %02d:%02d' % (
    datetime.year,
    datetime.month,
    datetime.day,
    datetime.hour,
    datetime.minute
  )
Formats a system datetime.  This is the format the admin
dataset/ETHPy150Open IanLewis/kay/kay/i18n/__init__.py/format_system_datetime