diff options
author | Raphael <raphaelkabo@gmail.com> | 2019-08-03 14:35:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-03 14:35:36 +0100 |
commit | 007a4a439bee628d190cefd306c877e7951e9ff3 (patch) | |
tree | 8fae436f826f590f6715796ddb54ac0395466985 /models | |
parent | a8fa61379b96f2179887c43d6aa870fdaba35a3c (diff) | |
parent | e441e74d8e6b59dbd5dcfe34c2b74cba91ca28e6 (diff) |
Merge pull request #4 from lowercasename/timezones
Timezones
Diffstat (limited to 'models')
-rwxr-xr-x | models/Event.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/models/Event.js b/models/Event.js index 35a8f2c..90c8117 100755 --- a/models/Event.js +++ b/models/Event.js @@ -85,16 +85,20 @@ 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, + default: 'Etc/UTC' + }, description: { type: String, trim: true, |