fix(date): add YYYY/MM/DD format

This commit is contained in:
Matteo Pagliazzi 2014-12-29 22:16:58 +01:00
parent 3105b61cb5
commit cb13b5ac26
2 changed files with 2 additions and 2 deletions

View file

@ -65,7 +65,7 @@ habitrpg.controller('SettingsCtrl',
User.set({'preferences.language': $scope.language.code});
}
$scope.availableFormats = ['MM/dd/yyyy','dd/MM/yyyy'];
$scope.availableFormats = ['MM/dd/yyyy','dd/MM/yyyy', 'YYYY/MM/DD'];
$scope.reroll = function(){
User.user.ops.reroll({});

View file

@ -278,7 +278,7 @@ var UserSchema = new Schema({
automaticAllocation: Boolean,
allocationMode: {type:String, enum: ['flat','classbased','taskbased'], 'default': 'flat'},
costume: Boolean,
dateFormat: {type: String, enum:['MM/dd/yyyy', 'dd/MM/yyyy'], 'default': 'MM/dd/yyyy'},
dateFormat: {type: String, enum:['MM/dd/yyyy', 'dd/MM/yyyy', 'YYYY/MM/DD'], 'default': 'MM/dd/yyyy'},
sleep: {type: Boolean, 'default': false},
stickyHeader: {type: Boolean, 'default': true},
disableClasses: {type: Boolean, 'default': false},