diff options
| author | Raphael Kabo <raphael@Raphaels-MacBook-Pro.local> | 2019-08-02 09:42:01 +0100 | 
|---|---|---|
| committer | Raphael Kabo <raphael@Raphaels-MacBook-Pro.local> | 2019-08-02 09:42:01 +0100 | 
| commit | b4af62626bdcec36912873d396b766ba7cacfe93 (patch) | |
| tree | 195cb0384fb3c824854c132c4268f5fef159451b /models | |
| parent | 822023f617126dd22d1db3d5d8f3fe24382a9dc4 (diff) | |
Added timezone field in database
Diffstat (limited to 'models')
| -rwxr-xr-x | models/Event.js | 7 | 
1 files changed, 4 insertions, 3 deletions
diff --git a/models/Event.js b/models/Event.js index 82c7904..90c8117 100755 --- a/models/Event.js +++ b/models/Event.js @@ -85,18 +85,19 @@ const EventSchema = new mongoose.Schema({      trim: true,  		required: true    }, -	start: { +	start: { // Stored as a UTC timestamp      type: Date,      trim: true,  		required: true    }, -	end: { +	end: { // Stored as a UTC timestamp      type: Date,      trim: true,  		required: true    },    timezone: { -	  type: String +		type: String, +		default: 'Etc/UTC'    },  	description: {  		type: String,  | 
