Is there a way to store Dates in local timezone and not in UTC ?
This is my schema :
var WhispSchema = new mongoose.Schema({
text : String,
pos : {latitude: Number, longitude: Number},
distance : {type : Number, default : 0},
created_by : {type : Schema.Types.ObjectId, ref : "UserSchema"},
upvote : {type : Number, default : 0},
downvote : {type : Number, default : 0}
});
WhispSchema.plugin(timestamps, {
createdAt: 'created_at',
updatedAt: 'updated_at'
});
But the field "created_at" and "updated_at" is in UTC format and I want the local timezone.