{"action":"closed","issue":{"url":"https://api.github.com/repos/aldeed/meteor-simple-schema/issues/422","labels_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/issues/422/labels{/name}","comments_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/issues/422/comments","events_url":"https://api.github.com/repos/aldeed/meteor-simple-schema/issues/422/events","html_url":"https://github.com/aldeed/meteor-simple-schema/issues/422","id":98148209,"number":422,"title":"Update fails on type Date when using MongoDB $currentDate modifier","user":{"login":"rurri","id":640058,"avatar_url":"https://avatars.githubusercontent.com/u/640058?v=3","gravatar_id":"","url":"https://api.github.com/users/rurri","html_url":"https://github.com/rurri","followers_url":"https://api.github.com/users/rurri/followers","following_url":"https://api.github.com/users/rurri/following{/other_user}","gists_url":"https://api.github.com/users/rurri/gists{/gist_id}","starred_url":"https://api.github.com/users/rurri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rurri/subscriptions","organizations_url":"https://api.github.com/users/rurri/orgs","repos_url":"https://api.github.com/users/rurri/repos","events_url":"https://api.github.com/users/rurri/events{/privacy}","received_events_url":"https://api.github.com/users/rurri/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-30T11:46:47Z","updated_at":"2015-11-10T23:32:05Z","closed_at":"2015-11-10T23:32:05Z","body":"Schema looks like:\r\n\r\n`modified: { type: Date, optional: true}`\r\n\r\nmongodb update looks like:\r\n\r\n`{$currentDate: {modified: true}, $set: {......}}`\r\n\r\nSimple Schema reports: \"Modified must be a Date [400]\""}}