* Add missing modules to package.json

* Start replacing some code with momentjs
This commit is contained in:
Bryan Ashby
2015-07-22 16:37:11 -06:00
parent 735b572f9f
commit 40a4f8caba
4 changed files with 19 additions and 6 deletions

View File

@@ -20,6 +20,7 @@ var packageJson = require('../package.json');
var assert = require('assert');
var os = require('os');
var _ = require('lodash');
var moment = require('moment');
exports.MCIViewFactory = MCIViewFactory;
@@ -39,7 +40,8 @@ MCIViewFactory.prototype.getPredefinedViewLabel = function(code) {
UR : this.client.user.properties.real_name,
LO : this.client.user.properties.location,
UA : this.client.user.getAge().toString(),
UB : this.client.user.getFormattedBirthDate('medium'),
UB : moment(this.client.user.properties.birthdate).format('MM/DD/YYYY'),
//UB : this.client.user.getFormattedBirthDate('medium'),
US : this.client.user.properties.sex,
UE : this.client.user.properties.email_address,
UW : this.client.user.properties.web_address,