@register.filter
def utcoffset(value):
    tz = timezone.get_current_timezone()
    utc_offset = datetime.datetime.now(tz).utcoffset()
    minutes = (((utc_offset.days * 24) * 60) + (utc_offset.seconds / 60))
    if (minutes == 0):
        return ''
    return ('(UTC%+03i:%02i)' % divmod(minutes, 60))
@register.filter
def utcoffset(value):
    tz = timezone.get_current_timezone()
    utc_offset = datetime.datetime.now(tz).utcoffset()
    minutes = (((utc_offset.days * 24) * 60) + (utc_offset.seconds / 60))
    if (minutes == 0):
        return 
    return ('(UTC%+03i:%02i)' % divmod(minutes, 60))