void setDate(String key, DateTime value) { _addAttribute(key, 'date', value.millisecondsSinceEpoch); }