def to_current_timezone(value):
 if (settings.USE_TZ and (value is not None) and timezone.is_aware(value)):
  current_timezone = timezone.get_current_timezone()
  return timezone.make_naive(value, current_timezone)
 return value

def to_current_timezone ( value ) : if ( settings . USE_TZ and ( value is not None ) and timezone . is_aware ( value ) ) : current_timezone = timezone . get_current_timezone ( ) return timezone . make_naive ( value , current_timezone ) return value
when time zone support is enabled .