'Format a date as string.
@param value: the value'

def formatter(self, value):

    if (not value):
        return current.messages['NONE']
    offset = self.delta()
    if offset:
        delta = datetime.timedelta(seconds=offset)
        if (not isinstance(value, datetime.datetime)):
            combine = datetime.datetime.combine
            bp = (combine(value, datetime.time(8, 0, 0)) - delta).time()
            value = combine(value, bp)
        value += delta
    result = self.calendar.format_date(value, dtfmt=self.format, local=True)
    return result
