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

def formatter(self, value):

    if (not value):
        return current.messages['NONE']
    offset = self.delta()
    if offset:
        value += datetime.timedelta(seconds=offset)
    result = self.calendar.format_datetime(value, dtfmt=self.format, local=True)
    return result
