Bug 877888 - Alarm API type checks date to prevent millisecond loss. r=nsm

--HG--
extra : rebase_source : c319da81514194bd5adef260f78e9317b1a044a8