{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/watchman/issues/392","repository_url":"https://api.github.com/repos/facebook/watchman","labels_url":"https://api.github.com/repos/facebook/watchman/issues/392/labels{/name}","comments_url":"https://api.github.com/repos/facebook/watchman/issues/392/comments","events_url":"https://api.github.com/repos/facebook/watchman/issues/392/events","html_url":"https://github.com/facebook/watchman/issues/392","id":192568573,"number":392,"title":"Using unix timestamp for since does not work","user":{"login":"danez","id":231804,"avatar_url":"https://avatars.githubusercontent.com/u/231804?v=3","gravatar_id":"","url":"https://api.github.com/users/danez","html_url":"https://github.com/danez","followers_url":"https://api.github.com/users/danez/followers","following_url":"https://api.github.com/users/danez/following{/other_user}","gists_url":"https://api.github.com/users/danez/gists{/gist_id}","starred_url":"https://api.github.com/users/danez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danez/subscriptions","organizations_url":"https://api.github.com/users/danez/orgs","repos_url":"https://api.github.com/users/danez/repos","events_url":"https://api.github.com/users/danez/events{/privacy}","received_events_url":"https://api.github.com/users/danez/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-30T13:42:51Z","updated_at":"2016-11-30T13:51:15Z","closed_at":null,"body":"When I try to issue a subscribe query to watchman with the since value being a number watchman throws an error.\r\n\r\n```\r\nError: failed to parse query: invalid value for 'since'\r\n    at BunserBuf.<anonymous> (node_modules/fb-watchman/index.js:95:23)\r\n    at emitOne (events.js:96:13)\r\n    at BunserBuf.emit (events.js:188:7)\r\n    at BunserBuf.process (node_modules/bser/index.js:289:10)\r\n    at node_modules/bser/index.js:244:12\r\n    at _combinedTickCallback (internal/process/next_tick.js:67:7)\r\n    at process._tickCallback (internal/process/next_tick.js:98:9)\r\n```\r\n\r\nThe arguments for the subscribe query is:\r\n```\r\n{ \r\n  expression: [ 'allof', [ 'name', [\"...\", \"long\", \"array\", \"of\", \"files\", \"...\"], 'wholename' ] ],\r\n  fields: [ 'name', 'mtime_ms', 'exists' ],\r\n  since: 1480513073\r\n }\r\n```\r\n\r\nAccording to the doc and as far as I can see in [clockspec.cpp](https://github.com/facebook/watchman/blob/9619ff88d3504938e079a38c7778504cf6b66d06/clockspec.cpp#L29..L33) it should be allowed to send an integer.\r\n\r\nAm I doing something wrong?"},"comment":{"url":"https://api.github.com/repos/facebook/watchman/issues/comments/263877911","html_url":"https://github.com/facebook/watchman/issues/392#issuecomment-263877911","issue_url":"https://api.github.com/repos/facebook/watchman/issues/392","id":263877911,"user":{"login":"danez","id":231804,"avatar_url":"https://avatars.githubusercontent.com/u/231804?v=3","gravatar_id":"","url":"https://api.github.com/users/danez","html_url":"https://github.com/danez","followers_url":"https://api.github.com/users/danez/followers","following_url":"https://api.github.com/users/danez/following{/other_user}","gists_url":"https://api.github.com/users/danez/gists{/gist_id}","starred_url":"https://api.github.com/users/danez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danez/subscriptions","organizations_url":"https://api.github.com/users/danez/orgs","repos_url":"https://api.github.com/users/danez/repos","events_url":"https://api.github.com/users/danez/events{/privacy}","received_events_url":"https://api.github.com/users/danez/received_events","type":"User","site_admin":false},"created_at":"2016-11-30T13:51:15Z","updated_at":"2016-11-30T13:51:15Z","body":"Seems if I use `new Int64(startTime)` it works. Is that expected? Would be nice if that could be handled on the fly for numbers in nodejs."}}
{"actor":{"display_login":"danez"}}