client side data models

This commit is contained in:
Eric Hulburd
2016-02-09 19:17:05 -06:00
parent a334afbc01
commit b14c266de3
12 changed files with 298 additions and 1 deletions

10
shared/models/house.js Normal file
View File

@@ -0,0 +1,10 @@
import moment from 'moment';
class House {
timeToDateString(timestamp){
var house = this;
return moment.tz(timestamp, house.timezone).format("YYYY-MM-DD");
}
}